facebook-canvas

Canvas authorization error 191

允我心安 提交于 2019-12-08 04:13:00
问题 I'm trying to implement a canvas page on facebook. The Canvas tutorial says that I should set the redirect_url to the canvas page: http://apps.facebook.com/<appName> However, when I do that, I get error 191. If I set it to the canvas url http://www.<mysite>.com/fbCanvas instead, then I lose the Facebook interface, since it opens in the "top" window. What's the correct way to implement this functionality? Is this a bug with Facebook? 回答1: I had the same problem, and I solved it this way: Open

Deep link into a Facebook canvas app

雨燕双飞 提交于 2019-12-08 03:56:46
问题 I am embedding a Facebook app https://example.com into the Facebook app canvas so that it is available at https://apps.facebook.com/EXAMPLE . My application sends notification emails that contain links like https://example.com/messages/123 and that should open the page embedded into the Facebook canvas. How do I achieve this? My current thoughts: User opens https://example.com/messages/123 Application checks for signed_request parameter Application redirects user to https://apps.facebook.com

Redirect User to my Website on a Facebook Canvas Page

删除回忆录丶 提交于 2019-12-08 01:24:29
问题 I have a small problem. I want to redirect a user to my website when he visits my facebook canvas page. As in friend.ly. They redirect user to their website rather than displaying the content in the Canvas page. The problem is that when i am using the PHP header function, it is showing the website in the iframe. I would like to redirect the entire page in mine. 回答1: You have to use javascript to reach outside the iframe (commonly referred to as frame busting.) <script> window.top.location =

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

余生长醉 提交于 2019-12-07 15:37:30
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://graph.facebook.com/oauth/access_token?". "client_id={$app_id}". "&client_secret={$app_secrete}". "&grant

facebook app request notification not showing up in Facebook iOS app for mobile web app

偶尔善良 提交于 2019-12-07 10:25:09
问题 I have a Facebook app that is configured as Facebook canvas app and a website with site and mobile site URLs When the app sends apprequests (invitations) they only show up in the recipient's notifications in the desktop browser and not in the Facebook iOS app. This makes no sense to me as the app does support play on mobile as it has a mobile web url and so the notifications should appear in the Facebook iOS app. How can I ensure my app requests show up in the Facebook iOS app? Am I missing

getLoginStatus not firing with calling from FB canvas

て烟熏妆下的殇ゞ 提交于 2019-12-06 06:45:22
问题 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

Redirect User to my Website on a Facebook Canvas Page

流过昼夜 提交于 2019-12-06 06:07:46
I have a small problem. I want to redirect a user to my website when he visits my facebook canvas page. As in friend.ly. They redirect user to their website rather than displaying the content in the Canvas page. The problem is that when i am using the PHP header function, it is showing the website in the iframe. I would like to redirect the entire page in mine. You have to use javascript to reach outside the iframe (commonly referred to as frame busting.) <script> window.top.location = 'http://www.yoursite.com/'; </script> 来源: https://stackoverflow.com/questions/5997466/redirect-user-to-my

facebook app request notification not showing up in Facebook iOS app for mobile web app

非 Y 不嫁゛ 提交于 2019-12-05 17:39:22
I have a Facebook app that is configured as Facebook canvas app and a website with site and mobile site URLs When the app sends apprequests (invitations) they only show up in the recipient's notifications in the desktop browser and not in the Facebook iOS app. This makes no sense to me as the app does support play on mobile as it has a mobile web url and so the notifications should appear in the Facebook iOS app. How can I ensure my app requests show up in the Facebook iOS app? Am I missing some kind of configuration? I had the same issue, but after adding a "Store ID" in the FB iOS Platform

Fancybox Positioning Inside Facebook Canvas iFrame

萝らか妹 提交于 2019-12-05 10:00:02
问题 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

Centered dialog on Facebook canvas app

你说的曾经没有我的故事 提交于 2019-12-04 19:33:54
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. 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.getPageInfo(function(pageInfo){ $("#dialog").animate({top: Math.max(parseInt(pageInfo.scrollTop) - parseInt