arguments when using the PHP Facebook API Graph library? -


i trying pull statuses in json format facebook's graph api. since using php, went following library.

https://github.com/facebook/facebook-php-sdk/blob/master/examples/example.php

i saw example, , class requires arguments upon instantiation, , don't know are:

// create our application instance (replace appid , secret). $facebook = new facebook(array(   'appid'  => '344617158898614',   'secret' => '6dc8ac871858b34798bc2488200e503d', )); 

and graph api explorer see access_token, php library doesn't mention @ all, thought need access_token make requests, don't i? hope can clear things me.

yes require access_token query on behalf of user on facebook, can either app access token or user access token. if user authorizes app, required permission in case read_stream permission, can obtain access token , query status updates. default access token app access token can access public data.

also suggest to on php sdk documentation getting started it.


Comments