nodebb-plugin-sso-facebook icon indicating copy to clipboard operation
nodebb-plugin-sso-facebook copied to clipboard

Custom made profile picture url doesn't work in recent fb graph api

Open sarim opened this issue 10 years ago • 0 comments

The plugin uses 'https://graph.facebook.com/' + profile.id + '/picture?type=large' for profile picture. But in facebook api v2.0 facebook user's user id's aren't real anymore.

Ref: https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids

App-scoped User IDs Facebook will begin to issue app-scoped user IDs when people first log into an instance of your app coded against v2.0 of the API. With app-scoped IDs, the ID for the same user will be different between apps.

So the custom made pro pic url doesn't work anymore. For it to work, the plugin needs to call me/picture?type=large then download the picture from the url.

I'll work on a PR.

sarim avatar Nov 23 '15 19:11 sarim