facebook-javascript-sdk

Passport.js: passport-facebook-token strategy, login through JS SDK and THEN authenticate passport?

江枫思渺然 提交于 2019-11-29 20:29:09
I was looking for a way to let my client authorize with the facebook JS SDK and then somehow transfer this authorization to my node server (so it can verify requests with the fb graph api) I stumbled across: https://github.com/jaredhanson/passport-facebook/issues/26 & https://github.com/drudge/passport-facebook-token what seems to be an entirely different strategy from passport-facebook. Am I correct when assuming that: One logs in with the fb JS SDK, and then the facebook-token strategy somehow extracts the token and fb id from the document or body object? Or is there any other decent way to

Cannot test FB.login to post without submitting app for review?

这一生的挚爱 提交于 2019-11-29 17:33:51
问题 I'm building a share button that will (on the user's behalf) post some text and a link to my company facebook wall as part of a competition entry. I need to use the scope 'publish_actions' for this. However facebook won't let me ask for that until my App has been submitted for review. How am I supposed to do that when I don't even know if my code works yet!? I've tried creating a "test app" version of the app but it still has the same error: window.fbAsyncInit = function() { FB.init({ appId :

Using facebook javascript sdk to process fql query

六眼飞鱼酱① 提交于 2019-11-29 16:40:34
I have just put implemented Facebook connect on my web-site using the JavaScript SDK. Now I would like to process an fql query. So I have two questions: Is it possible using only JavaScript fql as " SELECT id, name FROM user WHERE uid IN (SELECT uid1 FROM friends WHERE uid2=me()) " ? Because when I tried some PHP SDK code using the facebook doc PHP: $app_id = 'MY_ID'; $app_secret = 'MY_APP_SECRET'; $my_url = 'POST_AUTH_URL'; $code = $_REQUEST["code"]; $_REQUEST["code"] is quite normally not recognized and I don't know what is the " 'POST_AUTH_URL' " because I didn't use the PHP SDK to process

Difficulty posting Actions to Timeline

我的梦境 提交于 2019-11-29 15:48:55
I've tried building the basis of our next app following Facebook's Open Graph Tutorial but for some reason I'm getting errors thrown at me regardless of how I try POSTing an action. I'll go as in-depth as I can here as I hope it'll be very useful for all developers getting to grips with the new Timeline. I've defined a battle action and a hero object using the default settings when setting up each. transcendgame is my namespace. $id is the userid of the Facebook user (I've tried using /me/, the direct id has always been less problematic in the past for me). $herourl is an urlencoded string

Facebook JavaScript SDK for FQL with additional parameter

天涯浪子 提交于 2019-11-29 15:40:36
问题 Facebook deprecated FB.Data.waitOn and FB.Data.query and they recommend we use FB.api instead. More info: http://developers.facebook.com/blog/post/561/ This sounds easy enough, but I can't seem to pass additional parameters with my FQL request without getting an error from Facebook. For example, I can successfully do this: FB.api({ method: 'fql.query', query: 'select page_id, name, pic, page_url from page where page_id=' + some_page_id }, function(response){ console.log(response); }); But I'd

Like FB page doesn't fire edge.create event after confirming

早过忘川 提交于 2019-11-29 14:15:02
The following codes have worked before but not now. Since FB added the confirm box when liking a page, the edge.create was no more fired after confirming. <div class="fb-page" data-href="{{ $fbPageUrl }}" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div> <script> $(document).ready(function() { $.getScript('//connect.facebook.net/en_US/sdk.js', function(){ FB.init({ appId : 'xxxxxxxxxxxxxx', xfbml : true, version : 'v2.9' }); FB.Event.subscribe('edge.create', function(response) { alert('Fired!'); }); }); });

FB is not defined javascript

↘锁芯ラ 提交于 2019-11-29 11:38:34
问题 I've a problem with FB JS SDK. I'm trying to do a request to get the fan_count of a facebook page node. Here is my code from my html file into the body : <script> window.fbAsyncInit = function() { FB.init({ appId : 'your-app-id', xfbml : true, version : 'v2.5' }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }

Platform Access Disabled: Access temporarily disabled due to changes to the Facebook Platform

霸气de小男生 提交于 2019-11-29 11:36:05
问题 I work with a web app that asks users for permissions to post on their behalf. For this, we call the FB login window (https://www.facebook.com/v2.10/dialog/oauth) to ask for the permissions. The permissions we request in the scope are: scope: 'public_profile, user_friends, read_insights, manage_pages, publish_actions, pages_manage_instant_articles, pages_messaging, publish_pages, ads_read, ads_management' everything has been working fine until today when we started getting this error:

Invalid version specified, facebook share plugin error

ⅰ亾dé卋堺 提交于 2019-11-29 10:32:09
问题 I want to use the facebook share plugin for the web app I am working on, I only need the basic share button. The app uses requirejs for loading javascript, so I followed the how-to and changed the facebook api url to the one found in code snippets on facebook docs. This doesn't work and the sdk throws error invalid version specified . This is how my files look. main.js require.config({ shim: { 'facebookshare' : { exports: 'FB' } }, paths: { 'facebookshare': "//connect.facebook.net/en_US/sdk

Facebook sdk.js returns 404 error

末鹿安然 提交于 2019-11-29 09:10:53
My web-app has the Facebook JS SDK implemented. Yesterday, everything was working fine and without any modification on the code, the script request started to return 404 errors. When I try to access it directly, this is what I find: Facebook Status shows that the API everything is OK. Instagram's embeds.js and Facebook's debug SDK are also returning the same error: Does anyone knows what it happening? I've tried accessing these files using my 4G network and the same error is displayed. I'm based in Dublin, Ireland. I figured this one out.. it seems the .net isn't working anymore.. I used ".com