facebook graph api - FB.api doesn't bring profile name -


i using facebook js sdk show news feeds. app works many users for users have authorized app doesn't bring reasonable result.

i use following code basic profile info works users doesn't:

fb.api('/' + id + '?access_token=' + access_token, function (response) {     var strtitle = response['first_name'] + "  " + response['last_name']; }); 

in response object receive id, birth date, email, profile link name not available. interestingly when open profile link in browser facebook says:

"sorry, page isn't available link followed may broken, or page may have been removed."

after code can bring posts again name of posts missing in response object. permissions list attached picture.permissions list

i can't understand going on , how can fix issue. please?

the problem using app center permissions feature (previously known authenticated referrals).

use these settings enter set of permissions app requires when displayed in app center

you should passing login url scope array of permissions in js sdk.

fb.login(function(response) {    // handle response  }, {scope: 'email,user_likes'}); 

or via login button

<div class="fb-login-button" scope="email,user_likes" data-show-faces="true" data-max-rows="3">login facebook</div 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -