开发者

PHP Facebook API

Aarg, can't find a good answer to this question: How can I auto-login on Facebook (knowing the username/password from a user) and then post a message on the wall? I already downloaded f开发者_如何转开发acebook.php, base_facebook.php and other files, but I don't how I can get this working...


You will need to create a facebook app. This will give you the appId and secret that are required to do most things with the graph api.

You don't even need the username and password of the user, they can authorise your app to post to their wall.

You can find all the info https://developers.facebook.com/docs/


You can use the facebook graph api and oauth to post on the facebook wall of a user.


Facebook's API does not support authentication via a user's email and password. You don't need facebook.php, or base_facebook.php. What you need is PHP and cURL to mimic browser HTTP requests and login to Facebook manually.

Try logging in to http://m.facebook.com and use Firefox's Firebug Addon or Chrome's Developer Tools to monitor browser requests.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜