脸书

Facebook SDK and rails 4 Turbolinks

匿名 (未验证) 提交于 2019-12-03 03:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having a hard time trying to load fast the javascript Facebook SDK into my rails 4 application. Is there a good way to make it work correctly with turbolinks? if i add this code on my JS application assets. It's not working properly due to turbolinks: <div id="fb-root"></div> <script> window.fbAsyncInit = function() { // init the FB JS SDK FB.init({ appId : 'YOUR_APP_ID', // App ID from the app dashboard channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel file for x-domain comms status : true, // Check Facebook Login status

FB.Event.subscribe not firing for certain events

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I'm trying to do some event handling when a user clicks the like button. My Facebook button is being created asynchronously via: (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); And that works great. I have the following function running as well: window.fbAsyncInit = function() { FB.init({status: true, cookie: true, xfbml: true}); FB.Event.subscribe("xfbml.render", function() { console

Laravel 5.1 - Facebook through Socialite (Client Error: 400)

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Using this tutorial on Laracast (Laravel 5.0 - Socialite), specifically until min 12.11 , I have successfully setup everything. However, I am using Laravel 5.1 Defined my route but currently commented out the callback provider, as I am just trying to fetch the user details through taken token: Route::get('auth/facebook', 'Auth\AuthController@redirectToProvider'); //Route::get('auth/facebook/aaa', 'Auth\AuthController@handleProviderCallback'); Added necessities in config>services.php : 'facebook' => [ 'client_id' => '##', 'client_secret' =>

Error: Multiple dex files define Landroid/support/annotations/AnimRes with Admob and Facebook Cordova plugins

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm building an app using cordova and the Ionic framework. I'm using the Wizcorp facebook plugin: https://github.com/Wizcorp/phonegap-facebook-plugin . and I recently added the google admob plugin: https://github.com/floatinghotpot/cordova-admob-pro However now when I build my project I'm met with the error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/annotations/AnimRes; Other SO solutions mention multiple android-support-v4.jar files conflicting, however the only android-support

How to Set Facebook Share Image (Only as a Fallback)?

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We can of course use the following to set the default share image: <meta property="og:image" content="http://website.com/images/icon.png" /> However, is there a way to set it as a fallback only, instead of a default? Meaning, only to be used IF Facebook can't find a larger, more appropriate image to use from the blog post. Note - Facebook already scrapes on its own automatically without any help from the website owner to try and find the most appropriate image. Only, if there's not an image used or too small of one it would be nice if it

Getting my own data from facebook using C# WITHOUT an application

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been googling for a couple of days, and I could not find any clue how to achieve that: I have a desktop application(C#) in which I'd like to be able to login to my facebook profile, and pull some data from it(e.g. profile information, wall posts, likes on my posts, etc.) Note that I DO NOT want to develop a facebook application, I simply would like to access my own user data. As far as I see, the Graph API was designed to develop FB apps, and Graph API calls always need an access token, but I do not have token, since I do not use any

Facebook XFBML is not rendering in Internet Explorer 8

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I put up this test page to illustrate this issue: (dead Link) Every browser I've tested on has worked but in Internet Explorer 8. The odd part is that Internet Explorer 8 doesn't even report an error, WOW, and that is something. So right now I'm stuck with to nothing to work on or debug. What have I overlooked? 回答1: So somehow the xmlns attribute that I had previously set to the HTML tag was gone, probably me undoing things like crazy. Here is how it should be if anyone encounters this issue: <html xmlns:fb="http://www.facebook.com/2008/fbml

Reduce the size of android facebook SDK

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are using facebook sdk to login the users to our app. But the SDK is pretty large hence it is increasing our apk size. Since we use only the login feature we do not require other modules of SDK (share, messenger etc). Is there any way we can add only the required features of SDK in the project? In case of google play services , additional maven artifacts have been added to the Google Repository that contain single domains of functionality.This means that we can include just those portions of Google Play services that your app uses.

Facebook app type no internet connection message

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I show no internet connection message like in facebook app that appears below the tab view. 回答1: You can design this in your XML file and then set its visibility to invisible like this: <RelativeLayout android:id="@+id/relativelayout_connection" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:alpha="0.8" android:background="@android:color/black" > <TextView android:id="@+id/textView_noInternetConnection" android:layout_width=

Facebook Login/Like Fail on IE8

匿名 (未验证) 提交于 2019-12-03 02:58:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've recently implemented Facebook Login button and a Facebook "Like" button using XFBML. You can see the site on http://colnect.com Everything works well with FireFox, Chrome, Opera & Safari. However, IE doesn't show neither "login" or "like" buttons and no error message is available as well. Any ideas? 回答1: Seems I'll be the kind of person to answer himself hoping it'll help someone. For Internet Explorer to recognize Facebook you should add xmlns:fb="http://www.facebook.com/2008/fbml" to your html tag, for me it's <html xmlns="http://www