facebook-canvas

iFrame showing up Blank in Facebook Canvas App

血红的双手。 提交于 2019-12-22 13:55:04
问题 I have an extremely simple page that I'm trying to view in the Facebook iframe. It's a Django-view but it's not dependent upon whether the request is submitted via POST or GET. All it does is returns some simple HTML. If we hit the link directly, it displays correctly. If, in firefox, I right-click on the iframe and choose the option to display only that frame -- then it shows correctly. However, when viewing the Facebook App, nothing shows up. Here's the App Link: http://apps.facebook.com

mobile version of Facebook app going into redirect loop

99封情书 提交于 2019-12-21 22:00:48
问题 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

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

元气小坏坏 提交于 2019-12-18 05:24:07
问题 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

Resizing canvas for the app

試著忘記壹切 提交于 2019-12-12 05:26:37
问题 we have been trying to setup the height for a canvas app without luck. this is the code we are using window.fbAsyncInit = function() { // assume we are already logged in FB.init({appId: '<?=$fb_app_id ?>', xfbml: true, oauth : true,cookie: true}); FB.Canvas.setAutoGrow(); } function sizeChangeCallback() { FB.Canvas.setSize({ width: 810, height: 950); } We tried both without the sizechangecallback and our settings set to Fixed and Fixed 950 回答1: After you setup the fixed height parameter in

Content not displayed in facebook app

左心房为你撑大大i 提交于 2019-12-11 22:16:16
问题 I am developing a facebook app for displaying products from magento store to facebook app. I have configured my product list page into canvas page correctly. I am getting following response when I try with facebook developer debug tool: I get the response as I expected. But when I try to display content in facebook app, it show following output. What is the issue I am facing and what is the solution for this issue ? 来源: https://stackoverflow.com/questions/17896967/content-not-displayed-in

Change Facebook Canvas button from 'Go to App' to 'Login with Facebook'

人盡茶涼 提交于 2019-12-11 18:09:55
问题 I created a facebook canvas. I'm looking for a way to change the canvas button from 'Go to app' to 'Login with Facebook' as shown on the attached pictures. Did some research but couldn't find anything on this matter. Any help would be appreciated. Thanks 回答1: One is an App that is embedded in Canvas: that's the "Go To App" one. The other is a Website that is NOT embedded in a canvas, that's the "Login" one. To change it, you'd need to use a custom login button to return the user to a holding

Slow load facebook canvas app when click on links (if target top)

跟風遠走 提交于 2019-12-11 04:47:23
问题 Situation: I am developing a facebook canvas app. Facebook is sending my sever a POST request with the signed_request each time that a page is render. Inside my app I have all my links with target="_top" because if I don't, facebook send my server a common GET without the signed request. So I cann't check the user info. Problem: It is too slow! even if I am testing it in local, each click that I press takes 1 sec to render and my canvas becomes completely white and then the info is shown, It

Facebook Canvas: redirect_uri is not owned by the application

一笑奈何 提交于 2019-12-11 03:29:11
问题 I am trying to integrate facebook canvas on my web application that is currently running on localhost:8080 upon running the site it gave me this error. API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application. And here is my app settings. I was just following the documentation and this error showed up, window.fbAsyncInit = function() { FB .init({ appId : 'myappIdHere', // App ID channelUrl : 'https

Centered dialog on Facebook canvas app

感情迁移 提交于 2019-12-10 00:12:39
问题 How can I create a dialog that stays centered as the user scrolls through my Facebook canvas app? I've read this post on the subject, but the method described there (listening to the undocumented facebook-event) did not work for me. 回答1: It looks like Facebook no longer poll the server to update the pageInfo as part of their library. However, it's fairly simple to write something that polls it yourself, and move the dialog appropriately: var timeout; var positionDialog = function(){ FB.Canvas

“A user access token is required to request this resource.” Facebook graph for notifications

≡放荡痞女 提交于 2019-12-08 05:40:20
问题 NOTE: When the user accepts my permissions to use my app. I ask them to accept manage_notifications I am so confused. I research this on the web and it seems I get a mix of deprecated and wrong information and I am trying to send a notification to the user using my facebook canvas app using facebook graph. the following is how I do it and its not working. public function getAccessToken() { $app_id = $this->settings['app_id']; $app_secrete = $this->settings['app_secrete']; $url = "https:/