facebook-canvas

mobile version of Facebook app going into redirect loop

好久不见. 提交于 2019-12-04 18:05:33
I have developed a Facebook app using the C# SDK and it is working fine. Now I want to also enable it on mobiles, so I tried to set the "mobile url" to the same one as my canvas url (which is a cloudapp.net address). However, when I try to access it from a mobile, it seems to go into a redirect loop involving my canvas url, the apps.facebook url and the m.facebook/apps url. Sometimes it goes out of the loop and I get the facebook error message saying : "the mobile version of the app is unavailable because it is misconfigured. It appears to be caught in a redirect loop." I think it may have to

getLoginStatus not firing with calling from FB canvas

妖精的绣舞 提交于 2019-12-04 10:36:41
Attempting a client site authorization, and attempting to run within a canvas. If I access the my website directly http://mysite.com/ everything works. If I try to run via canvas https://apps.facebook.com/myapp it runs but getLoginStatus does not fire at all. var curLoc = window.location; FB.init({ appId: 'xxxxxxxxxxxxxxx', // App ID channelUrl: curLoc.protocol + "//" + curLoc.hostname + ":" + curLoc.port + "/channel.html", cookie: true, // enable cookies to allow the server to access the session status: true, oauth: true, xfbml: true }); FB.getLoginStatus(function (response) { if (response

how to read facebook signed_request to get user_id

橙三吉。 提交于 2019-12-04 03:24:36
问题 According to Facebook - Authentication within a Canvas Page Document, they say that we will be getting a signed_request which consists a JSON object. Now they say that signed_request can be get through $_POST['signed_request'] I agree its working for me. Now according to them if the user is logged in i will be getting a JSON object value like this:- { "expires":UNIXTIME_WHEN_ACCESS_TOKEN_EXPIRES, "algorithm":"HMAC-SHA256", "issued_at":UNIXTIME_WHEN_REQUEST_WAS_ISSUED, "oauth_token":"USER

Fancybox Positioning Inside Facebook Canvas iFrame

醉酒当歌 提交于 2019-12-03 21:25:33
OK so I have a iframe canvas app with its height set to "Settable" with the facebook javascrip sdk calls to FB.Canvas.setSize(); and FB.Canvas.setAutoGrow(); . These are working perfectly, as the iframe gets set to a certain pixel height based on its content. The problem is that when I make a call to Fancybox, it positions itself based on this height. I know that's exactly what its supposed to do as the fancybox jQuery returns the viewport by: (line 673 of latest version of jquery.fancybox-1.3.4.js ): _get_viewport = function() { return [ $(window).width() - (currentOpts.margin * 2), $(window)

Facebook canvas app vs Facebook mobile web app

点点圈 提交于 2019-12-03 14:39:45
I'm a bit confused about the difference between a facebook canvas application and a facebook mobile web application. Here is the context of my confusion.. I have a canvas application, let us call its namespace as myfbapp, and I basically can access it from https://apps.facebook.com/myfbapp and after I login to FB it opens up with in Facebook. I'm using java (apache / tomcat) for my server side implementation and for simplicity sake let us say I just have an index.html and a authenticationfilter.java (which implements Filter) in my web application. I don't have any Facebook specific Javascript

How to create and use self hosted objects to share custom stories in Android?

独自空忆成欢 提交于 2019-11-30 08:52:29
问题 I am developing a game app. And I am sharing facebook custom stories in my app.I have created a self hosted object(html page). I want to use that same self hosted object in android,ios and Facebook canvas app. I have already done custom story sharing without using self hosted object for android app and below is my code for the same OpenGraphObject objProperty = OpenGraphObject.Factory.createForPost("namespace:level"); objProperty.setProperty("title","Title"); objProperty.setProperty("image",

PHP SDK: How do I capture the access token after user auths app?

怎甘沉沦 提交于 2019-11-29 08:56:55
This is for a canvas app on the Facebook Platform using the new(est) Facebook PHP SDK. We are using the PHP example from the Facebook tutorial (https://developers.facebook.com/docs/appsonfacebook/tutorial/) to trigger the OAuth dialog and get the test user to the redirect URL. At the redirect URL, we use the PHP example from the Facebook signed request docs page (https://developers.facebook.com/docs/authentication/signed_request/) and our test users can successfully authorize the app. However, after the test user auths the app, we are not able to capture the access token and its expiration. We

How to create and use self hosted objects to share custom stories in Android?

南笙酒味 提交于 2019-11-29 08:50:01
I am developing a game app. And I am sharing facebook custom stories in my app.I have created a self hosted object(html page). I want to use that same self hosted object in android,ios and Facebook canvas app. I have already done custom story sharing without using self hosted object for android app and below is my code for the same OpenGraphObject objProperty = OpenGraphObject.Factory.createForPost("namespace:level"); objProperty.setProperty("title","Title"); objProperty.setProperty("image","http://www.example.com/jokedemo/image/wrong.jpg"); objProperty.setProperty("url", "http://www.example

Facebook Deauthorize Callback over HTTPS

喜欢而已 提交于 2019-11-28 08:44:00
问题 I've implemented a Deauthorize Callback for my canvas app. It would appear that Facebook is unable to ping the Deauthorize Callback over https, but it has no problem with http. I'm logging all connections and there is no record of pinging the callback from Facebook, though if I ping it myself it is logged. Further, if I have Facebook ping the callback via the URL debugging tool (https://developers.facebook.com/tools/debug) it is successful. Given that https does not work, I'm assuming

Facebook iframe tab signed request always empty

▼魔方 西西 提交于 2019-11-27 05:01:48
I'm working on a Facebook app tab and would like to use the signed request bundle as documented here: http://developers.facebook.com/blog/post/462/ I'm trying to use their example code to unpackage the signed request which is supposedly passed to the tab, however, $_POST , $_GET , and $_REQUEST are always all empty. The exact code works on the canvas page and I am able to parse the signed request. Is there something that I'm missing in their recent announcement? By the way, the app is not published to the marketplace, and the fanpage my tab is installed on is private. Will that make a