facebook-sdk-4.0

Facebook SDK - Unable to get session

我是研究僧i 提交于 2019-12-13 05:14:13
问题 I'm using CodeIgniter to make a canvas app (this is important), NOT a web app. To my understanding that means I don't have to log the user in like a traditional Facebook Connect app would, by forwarding them onto a Login URL. Facebook should handle that. However, although I get a full signed request, I'm unable to get a session. Below is my code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); use Facebook\FacebookSession; use Facebook\FacebookRequest; use Facebook

Posting to Facebook with Python and Graph API, Permissions Issue

孤街浪徒 提交于 2019-12-13 02:20:11
问题 Relatively new to interacting with Facebook through the Graph API, so apologies in advance. I a simply trying to post a facebook status to my own facebook with the python facebook-sdk and the Graph API. I have authorized a user-access-token with literally every permission: Sceenshot of Permissions And then using the API documentation, I am simply doing graph.put_object(parent_object='me', connection_name='feed', message='Hello, world') With the graph object built by calling the provided

Unable to get profile info from Facebook in android SDK 4

非 Y 不嫁゛ 提交于 2019-12-13 00:40:33
问题 I am unable to get basic profile info from the ProfileTracker function from Facebook SDK v4. How can I get all the info? I am currently successfully logging in and geting accesstoken and user-id . Code: public class HelloFacebookSampleActivity extends FragmentActivity { LoginButton loginButton ; CallbackManager callbackManager; private String fbUserID; private String fbProfileName; private String fbAuthToken; private AccessTokenTracker accessTokenTracker; private ProfileTracker profileTracker

How to handle Facebook Android SDK v4.1 Access Token between Activities

别说谁变了你拦得住时间么 提交于 2019-12-12 15:14:35
问题 When i go to another activity after successfully logged a user in i can't access to the Facebook Access token AccessToken.getCurrentAccessToken() I got this in the LogCat: {AccessToken token:ACCESS_TOKEN_REMOVED permissions:[]} 回答1: My solution if you are using the android login button is: To use a fragment and call it inside every activity, you can choose to display it or not depending on what the current activity will be doing, all the fragment's methods will work just fine. Here is some

Error validating access token: The user has not authorized application. Facebook SDK 4

痞子三分冷 提交于 2019-12-12 11:42:39
问题 Here is the case : If I previously granted read permissions to my application via LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList("email")); Then, when I need to share I request publish permissions via : LoginManager.getInstance().logInWithPublishPermissions(getActivity(), Arrays.asList("publish_actions")); Everything works fine until I removed permissions for my application in Web. If Application was killed or stopped and I need to share I will check if I still have

AppInviteDialog not working in Android Facebook SDK 4.0

梦想与她 提交于 2019-12-12 08:12:01
问题 After long research and trying to fix this on my own, I haven't found any acceptable working result. Following this documentation I'm trying to invite friends to my app. All elements, such as share buttons are working properly. The only problem are with "Invite to app" dialog. After selecting a friend, the dialog are showing red alert icon and "send" button is turns into "retry" button. I have tried fix this in many ways - configure my app in FB dev page (like changing app category: game,

Facebook API sdk 4.0 - post a photo onto facebook

末鹿安然 提交于 2019-12-12 07:28:44
问题 I am trying to create an application where the user can browse and submit a photo from their computer onto their facebook. For this, they will first have to upload their photo onto the server and then using a facebook request, post this image onto facebook. I am using multipart/form-data. This is what I have so far for this, assuming I have a valid session, my api request: $request = new Facebook{ $session, 'POST', '/me/photos', array ( 'source' => '{image-data}', ) ); $response = $request-

Can not import facebook-sdk 4.0.1

拥有回忆 提交于 2019-12-12 07:15:53
问题 I have android studio 1.1.0 and i just created a new project and i'm trying to import new facebook-sdk 4.0.1 but can not do this, I followed Facebook Getting Started But can not get it work. My app structure My build.gradle(Project: MyApplication) file is: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' // NOTE: Do not

Integrate facebooksdk with Identity 2.0

我只是一个虾纸丫 提交于 2019-12-12 06:15:28
问题 I have an MVC5 app and have figured out how to authenticate with facebook initially using Identity 2.0. Other than adding email to the scope, it is basically default: var options = new FacebookAuthenticationOptions() { AppId = "##################", AppSecret = "######################" }; options.Scope.Add("email"); app.UseFacebookAuthentication(options); In another section of my app, it is possible that the user would need to upgrade the facebook token to be able to publish to their wall as

Not Receiving Data From Facebook iOS SDK

喜夏-厌秋 提交于 2019-12-12 04:07:22
问题 I'm trying to get the Facebook SDK to work. The only goal I'm trying to achieve is to verify activations, I'm not using the login, sharing. etc. Every install step is complete but when I check the analytics it's not logging data. Does anyone have an idea as to why? If needed, my install process is outlined below: 1) I downloaded the SDK yesterday. I dragged the bolts and core files into my project navigator then, in the Build Settings, I've added the path to the framework: "/Users/Dave