PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, March 6, 2022

[FIXED] Get users friends list in Graph API version 2.0

 March 06, 2022     facebook, facebook-friends, facebook-graph-api, facebook-php-sdk     No comments   

Issue

I am developing an application in which the user will be logged in using Facebook credentials.

Once the user is logged in I need to retrieve the user's friends list. But as per new Facebook Graph API version 2.0,I cant get the list of friends until the user's friends logs in to the application.

Is there any possibility to take the user's friends list without user's friends logging in to the application.

If the user cant get the friends list, how come he can invite his friends to the application and asks his permission to retrieve his details? Is there any other way to do this?

Is it possible to fetch the entire friends list of a user by using FQL. If so will it affect the app in the future?

I am new to facebook apps.Please help me to solve this. Thanks in advance.


Solution

If you are a canvas game you can use invitable_friends ( https://developers.facebook.com/docs/games/invitable-friends/v2.0 ). Otherwise you can use the Share or Send/Message dialogs.



Answered By - WizKid
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing