x-facebook-platform

Facebook apprequests not working

拥有回忆 提交于 2019-12-21 05:49:17
问题 I have following code in html file: <html> <head> <title>My Great Website</title> </head> <body> <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js"> </script> <script> FB.init({ appId:'156154681125939', cookie:true, status:true, xfbml:true }); FB.ui({ method: 'apprequests', message: 'Here is a new Requests dialog...'}); </script> </body> </html> I am using this code to send apprequests for my app (reference: http://developers.facebook.com/blog/post/464/) Problem:

Integrating Facebook chat

吃可爱长大的小学妹 提交于 2019-12-18 03:12:24
问题 I have written a program to integrate Facebook user chat in C#, however I always get <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure> after sending the response to the server. I've checked the API key and the App secret, both of them are correct. It looks like I'm passing some wrong parameters to the server. Here is my code. private void GetDetailsButton_Click(object sender, EventArgs e) { TcpClient FacebookClient = new TcpClient(); FacebookClient.Connect("chat

Integrating Facebook chat

可紊 提交于 2019-12-18 03:11:33
问题 I have written a program to integrate Facebook user chat in C#, however I always get <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure> after sending the response to the server. I've checked the API key and the App secret, both of them are correct. It looks like I'm passing some wrong parameters to the server. Here is my code. private void GetDetailsButton_Click(object sender, EventArgs e) { TcpClient FacebookClient = new TcpClient(); FacebookClient.Connect("chat

X-FACEBOOK-PLATFORM authentication with SMACK Java library using OAuth 2.0

二次信任 提交于 2019-12-04 18:54:09
问题 First post here so please be gentle. I'm building a facebook chat client, using Smack library. I'm using X-FACEBOOK-PLATFORM method in order not to save any passwords. I had it working properly using oauth 1.0, and want to change it to 2.0, cause of the october 1st deadline ;p. From what I understand the only thing I'd have to do in order to migrate to 2.0 is removing "sig" and "session_key" parameters and adding an "access_token" parameter, but I'm getting an "SASL authentication X-FACEBOOK

Facebook apprequests not working

青春壹個敷衍的年華 提交于 2019-12-03 17:15:29
I have following code in html file: <html> <head> <title>My Great Website</title> </head> <body> <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js"> </script> <script> FB.init({ appId:'156154681125939', cookie:true, status:true, xfbml:true }); FB.ui({ method: 'apprequests', message: 'Here is a new Requests dialog...'}); </script> </body> </html> I am using this code to send apprequests for my app (reference: http://developers.facebook.com/blog/post/464/ ) Problem: I am able to load Request dialogue by above code, and it shows my friend list. Also I can send invited

Any way to pull out session key from access token returned by Facebook iOS SDK?

我是研究僧i 提交于 2019-11-29 23:27:36
问题 I need Facebook session key to be used in this senario: http://developers.facebook.com/docs/chat/#platauth However, the current Facebook iOS SDK returned us a access token which is not enough for this case. I digged around a lot , found this question here: http://www.quora.com/Do-the-OAuth2-access-tokens-in-the-new-Facebook-Graph-API-expire But the format it described doesn't have a similarity to the access token we got. I am a little confused on these things. By the way, I checked out an old

Integrating Facebook chat

孤街醉人 提交于 2019-11-29 01:25:00
I have written a program to integrate Facebook user chat in C#, however I always get <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure> after sending the response to the server. I've checked the API key and the App secret, both of them are correct. It looks like I'm passing some wrong parameters to the server. Here is my code. private void GetDetailsButton_Click(object sender, EventArgs e) { TcpClient FacebookClient = new TcpClient(); FacebookClient.Connect("chat.facebook.com", 5222); NetworkStream myns = FacebookClient.GetStream(); string xml = "<?xml version='1.0'?