angularjs - Getting 403 error while accessing facebook user profile pic -


facebook api returns me facebook profile picture url. save url in db , fetch there when view profile page. i'm trying show facebook profile picture in profile page of angularjs application i'm building.

this url getting response.

https://scontent.xx.fbcdn.net/v/t1.0-1/p200x200/14100401_286861985019877_63722353171428782_n.jpg?oh=b2bfb6e86553aef6f37989d965e5375e&oe=58584dc1 

i'm trying show this.

<img src="https://scontent.xx.fbcdn.net/v/t1.0-1/p200x200/14100401_286861985019877_63722353171428782_n.jpg?oh=b2bfb6e86553aef6f37989d965e5375e&amp;oe=58584dc1" ng-src="https://scontent.xx.fbcdn.net/v/t1.0-1/p200x200/14100401_286861985019877_63722353171428782_n.jpg?oh=b2bfb6e86553aef6f37989d965e5375e&amp;oe=58584dc1" class="img-circle"> 

i fetch db , save in variable , pass variable src, i'm getting network error: 403 forbidden.

but when edit html console , hard code url, shows.

why facing such issue?

my facebook app pretty simple. has default permission. means can fetch profile picture, right?

now, app in development mode. site url mentioned this:

http://127.0.0.1/projects/websitename/ 

is issue happening because i'm accessing localhost?


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -