脸书

How to open facebook page in facebook app in iphone?

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have the following page I want to show in facebook app: http://www.facebook.com/mypage I try to do the following but it doesn't seem to work: NSURL *urlApp = [NSURL URLWithString:@"fb://profile/mypage"]; [[UIApplication sharedApplication] openURL:urlApp]; also I tried @"fb://mypage" with the same negative result. Application is open but without the page needed. 回答1: To open facebook page in facebook app you should: 1)Find uid of your page (it can be done for example by looking at source code of your facebook page) I got the following

Flask facebook canvas app - 405 method not allowed

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am fairly new to web development and Python, trying to make a facebook app using python flask. Found some code in this tutorial that I am using to get started: http://ryaneshea.com/facebook-authentication-for-flask-apps The Facebook OAuth authentication is working, the first time a user uses the app they are asked to give the app their permissions. Afterwards they are supposed to be redirected to the applications index site. If the app is being used from within Facebook it then gives the message: "405 method not allowed". If the app is

转【唐巧】的谈谈 React Native

为君一笑 提交于 2019-12-03 01:38:42
前言 几天前,Facebook 在 React.js Conf 2015 大会上推出了 React Native( 视频链接 )。我发了一条微博( 地址 ),结果引来了 100 多次转发。为什么 React Native 会引来如此多的关注呢?我在这里谈谈我对 React Native 的理解。 一个新框架的出现总是为了解决现有的一些问题,那么对于现在的移动开发者来说,到底有哪些问题 React Native 能涉及呢? 人才稀缺的问题 首先的问题是:移动开发人才的稀缺。看看那些培训班出来的人吧,经过 3 个月的培训就可以拿到 8K 甚至上万的工作。在北京稍微有点工作经验的 iOS 开发,就要求 2 万一个月的工资。这说明当前移动互联网和创业的火热,已经让业界没有足够的开发人才了,所以大家都用涨工资来抢人才。而由于跨平台的框架(例如 PhoneGap,RubyMotion)都还是不太靠谱,所以对于稍微大一些的公司,都会选择针对 iOS 和 Android 平台分别做不同的定制开发。而 JavaScript 显然是一个群众基础更广的语言,这将使得相关人才更容易获得,同时由于后面提到的代码复用问题得到解决,也能节省一部分开发人员。 代码复用的问题 React Native 虽然强调自己不是 “Write once, run anywhere” 的框架,但是它至少能像 Google 的

A simple and up-to-date way to implement Facebook login in a Django app

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This issue is very common in stackoverflow, and there's a lot of different questions and answers about it, yet I couldn't find exactly what I need. First, I'd like to define exactly what I need: the option to let users log in to my app using their Facebook credentials. The app will save a matching classic Django user. I will only need to use the user's profile picture and to make sure that each time the same Facebook user will be related to the matching Django user. Unfortunately, I find it really frustrating to implement for the

Facebook SDK PHP 5.0 getLoginUrl() Error 500

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use the examples provided under Facebook PHP SDK 5.0 to login to Facebook. I am getting back 500 Internal Server Error. I am using the Baby Plan from HostGator which is running Php 5.5.27 PHP INFO . Is there configuration I would need to add to my server to get things working? login.php <?php session_start(); // Include the required dependencies. require_once( 'vendor/autoload.php' ); // Initialize the Facebook PHP SDK v5. $fb = new Facebook\Facebook([ 'app_id' => '495994870548274', 'app_secret' =>

Facebook - “Cannot query users by their username” solution

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing an android app. I was using a HttpURLConnection to get profile pictures of facebook users. The URL looks like this: http://graph.facebook.com/?ids=username1,username2,username3&fields=picture&type=square But now, since v2.2 doesn't let me to get profile pictures of users who are not using my facebook app, it throws an error: { "error": { "message": "(#803) Cannot query users by their username (username1)", "type": "OAuthException", "code": 803 } } I am not interested in using "Facebook SDK for Android". Let's say I use a pop

Can&#039;t use Facebook Account Kit: Error inflating class com.facebook.accountkit.ui.ConstrainedLinearLayout

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to integrate Facebook AccountKit to allow users to sign-up with their e-mail or phone number. But when launching the AccountKitActivity, the app crash because it can't inflate a "ConstrainedLayout". Error message : java.lang.RuntimeException: Unable to start activity android.view.InflateException: Binary XML file line #45: Error inflating class com.facebook.accountkit.ui.ConstrainedLinearLayout And below: Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 12: TypedValue{t=0x3/d=0x512 "res

Facebook SDK for Android - set Application ID programmatically

匿名 (未验证) 提交于 2019-12-03 01:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a native Android app that needs to connect to a different Facebook app (different Application ID) based on an app setting that can be changed at runtime. Imagine the app can be set to point to DEV, TEST, or PROD. When pointed to DEV the FB Application ID should be "1". When pointed to TEST the FB Application ID should be "2". etc. The problem is the UiLifecycleHelper from the Facebook SDK automatically reads the "com.facebook.sdk.ApplicationId" from the AndroidManifest.xml during the onCreate phase. There doesn't appear to be a way to

Getting error when run react-native run-android

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: A problem occurred configuring project ':app' . > Could not resolve all dependencies for configuration ':app:_debugApk' . > A problem occurred configuring project ':react-native-fbsdk' . > Could not resolve all dependencies for configuration ':react-native-fbsdk:_debugPublishCopy' . > Could not find com . android . support : appcompat - v7 : 27.0 . 1. Searched in the following locations : file : /home/ ubuntu / Android / Sdk / extras / android / m2repository / com / android / support / appcompat - v7 / 27.0 . 1 / appcompat - v7 -

ios Facebook custom url scheme to open user profile

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://profile/user.x"]]; fb://profile/[your ID] and the facebook app will open to your page. fb://profile/(fbid) I followed the steps above to open Facebook native app in iOS 8 but it does not work, is there a way to do this? I mean twitter works perfect whats wrong with Facebook not updating their API!. Thanks 回答1: As Ming Li pointed out in his comment, this is not officially supported. You can't deeplink to a user profile in the Facebook app. 文章来源: ios Facebook custom url