facebook-iframe

How to make a pop up to ask user for extended permission in an i-frame application

风流意气都作罢 提交于 2020-04-16 02:26:12
问题 I am trying to build a facebook app using iframe (not fbml). I am using php client. after trying a lot I'm not able to publish stream also I am not able to create a pop up to ask user for extended permission. I have used the following: function facebook_prompt_permission(permission) { ensure_init(function() { //check is user already granted for this permission or not FB.Facebook.apiClient.users_hasAppPermission(permission, function(result) { // prompt offline permission if (result == 0) {

Session does not invalidating in old facebook iframe app

孤人 提交于 2020-01-17 07:36:39
问题 I am facing a very strange issue. I have developed a Facebook iframe application almost a year back. I am using facebook-php-sdk for getting logged in user session and other details. I recently made some changes and used the new facebook OAuth based API. But I am now facing a problem, when user logs out from Facebook, still my iframe app is able to access its facebook session. The problem is only reproducible in IE. I am using CodeIgniter framework and have referred this post. Here is the

Session does not invalidating in old facebook iframe app

Deadly 提交于 2020-01-17 07:36:29
问题 I am facing a very strange issue. I have developed a Facebook iframe application almost a year back. I am using facebook-php-sdk for getting logged in user session and other details. I recently made some changes and used the new facebook OAuth based API. But I am now facing a problem, when user logs out from Facebook, still my iframe app is able to access its facebook session. The problem is only reproducible in IE. I am using CodeIgniter framework and have referred this post. Here is the

Facebook Page Tab doesn't show my content

好久不见. 提交于 2020-01-16 19:25:11
问题 I'm trying to show some html in a facebook tab page without success.... I'm new in facebook applications and I do not understand what is happening. I've created a heroku app, to use your SSL, named https://sinatra-dev-test.herokuapp.com, this URL only shows a H1 with a "Teste" string. In my Sinatra Application I have a get route, and a post route that redirects to get. The heroku logs do not show nothing in particular, no one error or warning. Here is a screenshot to my facebook app config:

iframe-based facebook app gets unwanted scroll bars with a smaller windows size

核能气质少年 提交于 2020-01-01 19:19:21
问题 I have this Facebook application profile page: http://www.facebook.com/developers/editapp.php?app_id=122313254494566#!/apps/application.php?id=122313254494566 which is associated with my iframe-based Facebook application, Gem Spinner: http://apps.facebook.com/gemspinner/ What I'm seeing is that, depending on the window height, my iframed content will appear with a fixed height and a scroll bar, instead of just flowing down the page (and off the bottom of the page, as necessary), as I would

Why does this XFBML markup embedded within an iframe'd facebook application not display anything?

允我心安 提交于 2020-01-01 06:31:16
问题 I've been trying to get this application working on Facebook, but nothing seems to render within the application except "Hi this is some sample text." A box stroked in red. "I am My photo " and a default silhoutte of a Facebook user as the photo. The following is the source code of the canvas frame: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns=http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"

Why does this XFBML markup embedded within an iframe'd facebook application not display anything?

﹥>﹥吖頭↗ 提交于 2020-01-01 06:31:06
问题 I've been trying to get this application working on Facebook, but nothing seems to render within the application except "Hi this is some sample text." A box stroked in red. "I am My photo " and a default silhoutte of a Facebook user as the photo. The following is the source code of the canvas frame: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns=http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"

Chrome-only cross-domain scripting errs in Facebook iFrame App upon FB.Login(..)

只愿长相守 提交于 2020-01-01 05:15:22
问题 In Google Chrome (I'm on 9.0.597.98) my Facebook iFrame app using Graph API/Javascript SDK tends to always throw the following two JavaScript errors (see below) based on cross-domain scripting, but only on one page of the app. It goes into an endless retry loop on the second message. After leaving it overnight, it reported a half million retries by this morning! The FB call being used is for login: FB.login(function(response) { if (response.session) { // user successfully logged in } else { /

PHP SDK 3.1.1 getUser() sometimes return 0

给你一囗甜甜゛ 提交于 2019-12-29 06:48:08
问题 This is driving me crazy >=( $facebook->getUser() works well sometimes, but sometimes returns 0 Here is my code: require 'fbapi/facebook.php'; $facebook = new Facebook(array( 'appId' => 'xxx', 'secret' => 'xxxxx', )); $user = $facebook->getUser(); the appId and secret are the correct ones. Which could be the reason that getUser sometimes it returns 0??? 回答1: It's more than likely something on Facebook's end (devs have gone through this before a while back). If $user returns null or 0, simply

FB JavaScript iframe application is not auto redirecting to FB login page if no session available

∥☆過路亽.° 提交于 2019-12-24 11:01:54
问题 I am developing facebook iframe app with JavaScript.. the problem is when the user hits the app URL https://apps.facebook.com/projectanida/ I want users to see the application main page if they are already logged into fb and if there is no user session available then the user should be automatically directed to FB page asking for credentials to log into Facebook to use my app. Here is the code : var href = "https://projectafacebook.appspot.com/fb/"; var appliId = "165346656890746"; window