tags:

views:

203

answers:

2

I'm trying to to get tokens so something like that so that an app will be able to search a user in Facebook.

I've tried http://github.com/facebook/php-sdk but it is either for authenticating a user or it is not working.

For example this one is for authenticating a user to the app http://github.com/facebook/php-sdk/blob/master/examples/example.php but I want to authenticate my app to facebook.

This one give error http://github.com/facebook/php-sdk/blob/master/tests/tests.php Fatal error: Class 'PHPUnit_Framework_TestCase' not found in...

And I do not know my ap's tokens. Also I do not know whether those tokes are used for once or they can be used multiple times.

+1  A: 

You can only access the email addresses (or proxy email addresses) of the users that gave your app that permission. There is no way to write a facebook application that accesses email addresses (or most any data) of arbitrary users.

Korbinian
Downvote without reasoning isn't really helpful. Do you think the answer is wrong, or do you just not like it?
Korbinian
A: 

I've been trying to do this. All I want to do is search for a page on say a musician then get the ID and then the link (URL) of their facebook fan page and return that... I got search working, but without a session it seems difficult to get info. I'm trying to figure out the arguments to makeRequest() to get client credentials... Hence ending up here in Google.