脸书

Vuejs component wait for facebook sdk to load

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a component that show a login button or username of the user from facebook. depends if he is logged in or not. Now in this component I use the created event so I'll check the login immidiatly. code in created in a brief: FB.getLoginStatus(function(response) { //more things..... the error is that it says that FB is not defined, and sure he is right, FB is not loaded yet. I load facebook like this <body> <script> window.fbAsyncInit = function() { FB.init({ appId : '1111111111', xfbml : true, version : 'v2.7' }); }; (function(d, s, id){

Facebook C# SDK - Server flow authentication

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am using the Facebook C# SDK installed using NuGet to allow user's to login to my site using Facebook. In all the C# SDK documentation that I've found, the access token was obtained using the JavaScript SDK. I want to do the entire authentication flow server side without using JavaScript SDK. Where can I find good documentation or sample code for the steps I need to follow for complete server side authentication using the Facebook C# SDK? Is there any advantage of combining C# SDK and JavaScript SDK, or is it fine to stick to

Invalid or no certificate authority found, using bundled information

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm getting started with the facebook API. I downloaded the example code from facebook, configured with my appID and secret keys. <? php require '../src/facebook.php' ; // Create our Application instance (replace this with your appId and secret). $facebook = new Facebook ( array ( 'appId' => '...' , 'secret' => '....' , )); // Get User ID $user = $facebook -> getUser (); if ( $user ) { try { // Proceed knowing you have a logged in user who's authenticated. $user_profile = $facebook -> api ( '/me' ); } catch ( FacebookApiException

Get latest Facebook posts of page with PHP SDK

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The following code is inside a file called facebook_posts.php which I call from my index file like so: <?php require_once("http://www.example.com/design/php/facebook_posts.php"); ?> . However, where this code is put, there is no response. So neither success, nor the catch errors return an error (as I see it). I tried absolute URLs, but that didn't work either. (I hid the api and page information.) Apparently the content that follows the require_once (footer and scripts) aren't loaded. Something seems to go wrong when including the SDK. I'm

Facebook chat - X-FACEBOOK-PLATFORM authentication

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to build an XMPP client on android, I've got it running perfect with authentication using Digest-MD-5, however when I try to convert it to X-FACEBOOK-PLATFORM it keeps failing. 回答1: So basically the X-FACEBOOK-PLATFORM authentication uses only a part of a access token. That is called the session key. The access token is seperated by "|" characters, so you split the access token and only take the characters that are in the center. Refer below. ** * *** |a681464febcefb8 * - ** | * ** * ** long callId = new GregorianCalendar()

Facebook login button works only on the second click

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using the php facebook class and put a login button on my page with $f->getLoginUrl() , the problem is this button does not work at first time I click on it. It does what it's supposed to and returns to my site but the $f->getUser() is empty. Strange thing is when I click the button the second time then it works flawlessly. $facebook = new Facebook(array( 'appId' => '25317735807xxxx', 'secret' => '37e5dd05657f2cc2a1bdc9974985xxxx', 'redirURL' => 'http://mysite.com/', )); $fb_login = '<a href="' . $facebook->getLoginUrl() . '" class="fb

$facebook-&gt;getSession(); not working. No idea why?

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: <? php require 'facebook.php' ; // Create our Application instance. $facebook = new Facebook ( array ( 'appId' => '130407366991766' , 'secret' => '****' , 'cookie' => true , )); // We may or may not have this data based on a $_GET or $_COOKIE based session. // // If we get a session here, it means we found a correctly signed session using // the Application Secret only Facebook and the Application know. We dont know // if it is still valid until we make an API call using the session. A session // can become invalid if it has

How to get big facebook video thumbnail

匿名 (未验证) 提交于 2019-12-03 02:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm looking for the way to get big facebook video thumbnail. i've found some links: http://graph.facebook.com/1571886379501082/picture ~> this one retun one small thumbnail picture with size 128x128. and other one http://graph.facebook.com/1571886379501082/thumbnails ~> this one will return big thumbnail picture but it required access_token to get. is it possible to get big thumbnail video picture without login on facebook? 回答1: This method will create an object array and seek the last key of the format, which is the big image. $fb = file

Facebook and twitter login with Parse iOS only works once

匿名 (未验证) 提交于 2019-12-03 02:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using the twitter and Facebook login in the Parse SDK. For every app launch I can log into each service once, but when I logout using [PFUser logOut] I am unable to log in again. The [PFFacebookUtils logInWithPermissions] block never gets called either with a user or an error. My (Facebook) Login Code is: - (IBAction)facebookLogin:(id)sender { NSArray *permissionsArray = @[ @"user_about_me" ]; // Login PFUser using Facebook [PFFacebookUtils logInWithPermissions:permissionsArray block:^(PFUser *user, NSError *error) { if (!user) {

Facebook OAuth “Unsupported” in Chrome on iOS

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The Facebook OAuth popup is throwing an error in Chrome on iOS only. Both developers.facebook.com and google have turned up nothing about this. Ideas? 回答1: You can use the redirection method as follow for this case (by detecting the user agent being chrome ios): https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri={redirect-uri} See more info here https://developers.facebook.com/docs/facebook-login/login-flow-for-web-no-jssdk/ Remark: I personnaly use the server OAuth in that case but this should do the trick and is quite