开发者

Facebook API suggestion

I need help about the connecting to facebook via api or like that. I have community users, and they trusting to my application (just a idea) and they gave me their facebook, friendfeeds, twitter username and passwords.

Then i need to send status update to these social networks via their apis. I found twitter and some social network开发者_高级运维s connection via api programmatically and they working on my project, but facebook isn't.

Facebook api talking about the facebook connect and it need to httpcookies for authenticating and authorizating the users. But my application's messaging layer working on the middle layer of the my application. So, i have tried to find some solution for connecting to facebook programmatically for per user requests, i didn't anything.

Can someone tell me please, how can do that ? Also, is there any api or any example code available over the internet for connect to facebook with username and password without API key or SecretKey and so on..

Thank you


First of all: collecting people's usernames and passwords is insane. Don't do that. You should be a trusted source and in this day and age of openID and OAuth platform authentication, it's just not necessary or acceptable. Twitter has an authentication method similar to Facebook Connect now as well: http://apiwiki.twitter.com/OAuth-FAQ

That being said...to answer your question, Facebook doesn't have a "direct" API that you can just query. Facebook Connect is a different beast than that of say Flickr, Twitter, or YouTube APIs. You would have to create an application on Facebook and use Facebook Connect to authenticate the user (they login ON Facebook, not giving you any information) first. You cannot access their email or password, but you can contact them through the Facebook API once authenticated. The API is quite limited in what you can access and also has limits on what data specifically you can cache.

Once the user has authenticated your application, you can use the javascript or php libraries to set their status and post wall posts: http://wiki.developers.facebook.com/index.php/Users.setStatus. Please note that to update status you first have to prompt your user to give you the status_update extended permission.

Edit: No, you can't access user's data without an api key or secret or without them authenticating you. Again, asking people for their account information is very shady (IMO).


Facebook is suing Power.com, a Brazilian start-up that lets users access a number of social networks through one portal.

check the article here

That said you might be ok with Facebook Connect

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜