开发者

facebook access_token problem

开发者 https://www.devze.com 2023-02-02 13:45 出处:网络
I just wrote a little application(4 page php), everything work fine, however, I have a question that, do I need to create a new instance of facebook (just like $facebook = new facebook....开发者_开发百

I just wrote a little application(4 page php), everything work fine, however, I have a question that, do I need to create a new instance of facebook (just like $facebook = new facebook....开发者_开发百科.) in every new php page, or just pass a access token or session? If only pass the access token, how can I use the function $faceook->api('something'); to acheive the data?

Because I'm a beginner of php, I have no idea how access token work, please help, thanks a lot!

Regards,

YK


You can create a file like config.php with new facebook instance code:

$facebook = new facebook.......

And include that file in your files where you may need to use API functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号