脸书

How to post on Facebook page's wall in Android?

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi I want to post any message or link to an Facebook page.What I have tried is this. void postInfo() { try { Bundle parameters = new Bundle(); parameters.putString("message", messageFacebook); parameters.putString("name", "Test Name"); parameters.putString("link", "http://www.mylink.com/"); parameters.putString("picture", imageUrl); parameters.putString("display", "page"); String responsePost = facebook.request("me/feed", parameters, "POST"); String responsePagePost = facebook.request(FACEBOOK_PAGE_ID+"/feed", parameters, "POST"); Log.i(TAG,

FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb**** is not registered as a URL Scheme

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to have the Facebook app native dialog login ( https://developers.facebook.com/docs/technical-guides/iossdk/login/#fbnative ). In the console, I get the following message when clicking on the FBLoginView: FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb**** is not registered as a URL Scheme Yet I did exactly as here: Failing to open active session after updating Facebook SDK to 3.5 回答1: In myapp-Info.plist , I renamed URL Schemes key to CFBundleURLSchemes : Before: CFBundleURLTypes URL Schemes fb*** After:

Proguard error with fresco

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using ProGuard and when I am running the project in release configuration, I get the following error: Warning:com.facebook.imagepipeline.bitmaps.DalvikBitmapFactory: can't find referenced field 'android.graphics.Bitmap$Config BITMAP_CONFIG' in program class com.facebook.imagepipeline.nativecode.Bitmaps I searched everywhere but couldn't find any clue to solve it. I have updated my proguard-rules.pro with what is given in the fresco's docs page. Fresco dependency: compile 'com.facebook.fresco:fresco:0.8.1+' compile 'com.facebook.fresco

Custom URL scheme for new Facebook iOS app

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Does anyone know what the custom URL scheme is to open a Facebook page in their new iOS app. I was using fb://page/PAGE_ID however this doesn't seem to be working in the recently updated Facebook iOS app, it just opens the app but doesn't go to the required page. 回答1: I got this answer at developer.facebook.com : Replace the word page with profile and it will work. Your new statement will be: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://profile/247377102029332"]]; 回答2: Use https://graph.facebook.com/YOUR_USERNAME to

Facebook APIs: Anyway to see when a page was created?

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Has Facebook ever provided a way to ascertain when a page was created either through the Graph API, the Legacy API, or FQL? I can't seem to find it. 回答1: No, the creation date of a page isn't exposed anywhere in the API 回答2: According to this offical resource : https://developers.facebook.com/docs/reference/fql/page There is no any column that mention about the time when page is created. 文章来源: Facebook APIs: Anyway to see when a page was created?

facebook接入到eclipse的心酸路

匿名 (未验证) 提交于 2019-12-03 00:19:01
最近公司项目组要求升级facebook的sdk版本,本以为下载引入就可以了,可是事实上却不是这样的。 入坑原因: 1、公司打包系统只支持ant打包方式 2、最新版的facebook只提供maven引入和aar包引入方式 问同事说上一个版本怎么集成的,得到的答案是几年前的包,那时候sdk有支持eclipse的依赖工程。 好吧,开始搞吧。 1、找到 官网文档 ,认真阅读 2、创建一个AndroidStudio工程,maven引入以下资源 dependencies { implementation fileTree( dir : 'libs' , include: [ '*.jar' ]) implementation 'com.android.support:appcompat-v7:27.0.2' implementation 'com.android.support:cardview-v7:27.0.2' compile 'com.facebook.android:facebook-common:4.33.0' compile 'com.facebook.android:facebook-share:4.33.0' } 注:由于我们没有用到facebook的登录按钮等资源,所以没有引用 facebook-login:4.33.0 资源 3、sdk下载完成后

实现Facebook SDK

匿名 (未验证) 提交于 2019-12-03 00:14:01
Facebook SDK 可将来自应用的应用事件数据传递到 Facebook。借助应用事件数据,您可以准确追踪和衡量用户在应用中执行的操作。 如果您尚未完成此操作,请在应用设置中指定应用的平台。打开应用面板,选择设置 > 基本,然后前往平台版块。 如果您在多个平台上提供应用,则请为应用支持的每个平台重复此项设置。例如,如果您的应用同时支持 Android 和 iOS,则您应在应用设置中设置两次平台,第一次针对 Android SDK,第二次针对 iOS SDK。 此时,SDK 已设置完毕,而且您的应用程序可将应用安装事件传递到 Facebook,以用于成效衡量和追踪。通过此数据,您可以追踪和衡量应用安装量,也可为移动应用安装事件优化您的广告投放。在为平台部署 SDK 后,您还应为要追踪和衡量的其他应用事件(如购买事件)添加代码。 飞书信是基于‘Facebook Messenger’的移动社交电商及O2O应用平台,是错位移植中国区微信生态链至海外市场的中国特色产物,截止2018年7月全球用户数超12亿。其体系包括更具私人社交属性的CRM客户管理系统,比EDM邮件营销更具查阅率的信息系统,配置AI智能机器人客服及售货系统,移动点餐、订阅、业务资源整合等等。 转载请标明出处: 实现Facebook SDK 来源:51CTO 作者: wx5da026583bdd8 链接:https:/

GitHub:Facebook

廉价感情. 提交于 2019-12-02 21:26:09
ylbtech-GitHub:Facebook 1. 返回顶部 2. 返回顶部 3. 返回顶部 4. 返回顶部 5. 返回顶部 1、 https://github.com/facebook 2、 6. 返回顶部 作者: ylbtech 出处: http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 来源: https://www.cnblogs.com/storebook/p/11762938.html

关于Facebook和Google+授权登录

匿名 (未验证) 提交于 2019-12-02 20:32:16
实际中遇到需要Facebook和Google+等第三方授权登录自己的Web应用(可能还有Android和IOS的手机应用),本质上都是JS SDK的官方应用。这时候不得不去他们官方查看文档。 注:一下所有连接如果无法打开,请自行翻Q.......... 参考文档: 1、facebook: https://developers.facebook.com/docs/facebook-login/web 2、google: https://developers.google.com/identity/sign-in/web/sign-in#add_a_google_sign-in_button 一、准备工作 ---facebook 1、facebook登录必须有appid,该appid自己在 https://developers.facebook.com/apps/ 创建的应用编号,先去 https://developers.facebook.com/apps/ 注册自己的应用 2、创建好应用安装官方填写好设置(必须是https不然无法正常连接),登录按钮可以使用官方默认或者自定义 ---google 1、clientid(Oauth2.0客户端ID)也是授权登录的必须参数,官方说法是应用凭据对应的客户端ID,需要去这里 https://console.developers.google