facebook-javascript-sdk

JS SDK FB.login() works but pop-up dialog is staying open after logged in

你离开我真会死。 提交于 2019-12-04 00:00:28
I am using the JS SDK for Facebook based on the NEW GraphAPI for Auth/Login. Has anyone had this issue when logging in after FB.login() was called via the JS SDK? The problem: after I initialize by calling FB.Init() asynchronously (because this all wrapped in a window.fbAsyncInit function) the login pops up; I log in but then that pop-up refreshes to show a white page and the pop-up stays open and does not close...why? I am waiting to check response.session in the FB.login() callback but it seems as though I never get it back because this pop-up seems to just stick there and the process

facebook fb.login two popups

亡梦爱人 提交于 2019-12-03 22:45:55
I am having a problem with facebook authentication in facebook Page Tab. I am usin JavaScript SDK FB.login method. I need theese scope: 'email,publish_stream'} permissions. And then I am launching my authentication function I am getting two popups one which asks to login and gives email permition and other requires to allow to post on whall. My question is how to login with only one permission asking? I found the answer to my question! Go to https://developers.facebook.com/apps Click on your app. Click edit app Click Advanced Check Enhanced Auth Dialog: Disabled Thats it. You have one

using facebook stream publish

时光怂恿深爱的人放手 提交于 2019-12-03 21:51:43
I want to publish a URL as an attachment to a friends wall: var attachment={'name':'favor','href':'http://128.196.239.71/movie.php?mid=<?php echo $_GET['mid']; ?>'}; Facebook.streamPublish('',attachment,null,friends[i],comment,callback); Doing the above gives me a Facebook undefined, what should I do to remedy this? Do I need to set a special permission in order to do this to the sender of this message? mikebutler You do need the stream.publish permission in order to use the stream.publish method or the equivalent graph API call. You can check that the user has already granted this permission

How to play facebook embed video in phonegap?

蓝咒 提交于 2019-12-03 21:46:35
I embedded a facebook video in my phonegap app where I've got two different problems and I'm able to fix just one of them . 1. first problem (fixed) - the facebook video was not being displayed in my app. So I could fix it doing something like this .fb-video { width: 100% !important; height:100%!important; } .fb-video span { width: 100% !important; height:4650px!important; } .fb-video iframe[style] { width: 100% !important; height:100%!important; } By the way I'm not sure if it's been doing the second problem, I think it not. 2. second problem - When I click over the video it is not being

Insecure login error while login with facebook php

被刻印的时光 ゝ 提交于 2019-12-03 21:43:24
I am doing login with Facebook using the Javascript SDK on a PHP website. On localhost it works fine but with the live site url it gives me this error message: Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https:// You don't have installed SSL Certificate on your site. You can use open source Let's Encrypt 来源: https://stackoverflow.com/questions/49358800/insecure-login-error-while-login-with-facebook-php

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)

C# Facebook SDK extend an accesstoken to 60 days

主宰稳场 提交于 2019-12-03 21:24:26
The main question: How am I supposed to extend the 2 hour access token for the 60 day access token via the C# SDK? Can you provide a sample of just that section where the code has already been traded for the 2 hour access token? Background: I've been looking around on here and trying various solutions and haven't found one that works for me yet. I can successfully make the /me call and get the information about the current user however when I try to extend the access token it fails. The goal of this app is to allow a user to set up a post and to monitor likes and comments after the fact for a

Facebook permission dialog (JavaScript sdk)

走远了吗. 提交于 2019-12-03 21:19:17
I am using OAuth Dialog for Facebook permission to access a users' email, birthday and other details but when I run this app URL that is https://apps.facebook.com/projectatestapp/ (while being logged into Facebook) I see this login to app window which says: You are logging into testapp as Nina Sewart. Logging in will not add this app's activity to Facebook. With log in and cancel button instead of Permission window with Allow and Don't Allow button here is my code <html xmlns:fb="https://www.facebook.com/2008/fbml"> <body> <script src="http://connect.facebook.net/en_US/all.js"></script> <div

Extend auth token without refreshing the page

天涯浪子 提交于 2019-12-03 21:07:48
Users want to use my facebook app for many hours without refreshing the browser. But token expires in 2 hours. Now I ask users to refresh the page but that's annoying. I don't want to ask offline access permissions because it will scare some users. The best solution will be somehow "relogin" and get new token without refreshing the page. Is it possible? I would subscribe to the expiry trigger (I think this is authResponseChange), then automate another login check. It won't be a perfect solution as it could trigger a pop up (if they have logged out for example) automatically, which a lot of

Using Facebook's API to post a video using the feed dialog fails

大兔子大兔子 提交于 2019-12-03 20:59:56
I'm trying to post a video to a user's timeline using Facebook's feed dialog. When I use the javascript SDK with: FB.ui({ method:'feed', name: 'testing', link: 'http://www.facebook.com', picture: 'http://img.youtube.com/vi/1CE6W5BubQo/0.jpg', source: 'http://www.youtube.com/watch?v=1CE6W5BubQo' }); I get: And this is missing the thumbnail and video player. I tried adding type: 'video' to the parameters and I also tried replacing the source parameter with a direct link to the .swf file, but that didn't help. I'm not sure if this is a bug or if I'm doing something wrong. Any ideas? Do like that: