How can I get the interests of my friend through f

2019-04-12 20:46发布

问题:

I am new to facebook api, and want to integrate in an site of my client. I have codeigniter as my MVC.It would be great if some one could tell me which library to use for facebook connect, and as to how to get interests of a friend who is in my friend list.

回答1:

First ask for the user_interests permission. Then make an authenticated Graph API call to /me/interests.



回答2:

Here is description how to implement the facebook lib in CI: http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/

From there, you can connect with facebook and retrieve data.