Facebook sdk 4.x is latest set of API for Facebook developers. It has two branches: - Facebook C#/.Net SDK 4.0 - Facebook PHP SDK 4.0
Questions tagged [facebook-sdk-4.x]
211 questions
0
votes
1 answer
FacebookCallback doesn't execute all the code -android
//code
callback = new FacebookCallback() {
Profile profile;
@Override
public void onSuccess(LoginResult loginResult) {
profile = Profile.getCurrentProfile();
GraphRequest request…

Ridae HAMDANI
- 686
- 2
- 7
- 17
0
votes
1 answer
Share a link from Android App using facebook-android-sdk with local image
My android application using facebook-android-sdk:4.14.0 to share a link. I used ShareLinkContent to create share content and call setImageUrl() to specify image. I want to use image from my app (not from a internet url link) to show on share post.…

TuanPM
- 685
- 8
- 29
0
votes
0 answers
How to get Facebook page posts count on Android using Facebook SDK
I am building an app, which lists all posts from a Page(that I manage and post to) and also gets corresponding posts view count. I looked into the documentation and it seems like the page needs a minimum of 30 Likes for insights API to work. Is this…

G3M
- 1,023
- 8
- 19
0
votes
0 answers
Can we use facebook "game service" for android non gaming applications?
Can we use facebook "game service" for android non gaming applications ? I want to reward my users for sending app install invite, FB page invite request and post share from my android non gaming application(Native android app). Can someone point me…

Praveen Balaji
- 387
- 5
- 11
0
votes
1 answer
Facebook SDK share on iOS not working
I am working on sharing a content on Facebook for an iOS app using Swift.
I have written a singleton class called FBManager and a function as below.
func shareContent(content:String, contentURL:String?, contentTitle:String? , fromController…

Preetham Baliga
- 271
- 2
- 4
- 15
0
votes
1 answer
Facebook logout button (iOS SDK) proper segue upon logging out
I have ran into some trouble when using facebooks login framework. Logging in is fine, simple and works. My problem is when I click the FBSK logout button there is a verification (are you sure...) that pops up which stops me from using an action…

Josh
- 529
- 6
- 21
0
votes
1 answer
Post an image to facebook failed in android using facebook SDk 4.0
I am working on an android app and want to share an image to facebook from my app but without showing dialog,I have tried as below,But its not working .Can anybody help me for this?
code
public void postFb(){ String path = "me/feed";
…

Jigar Makwana
- 227
- 2
- 5
- 17
0
votes
3 answers
Display editable text in Facebook Share Dialog
I am using the Facebook SDK to create a sharedialog with a sharecontent. However, how should i display editable text in the share dialog. I'm able to show links and all. I just don't know how to set a custom text which the user can…

div
- 1,475
- 3
- 22
- 32
0
votes
1 answer
Facebook iOS SDK 4 doesn't return all data
I use this code to login to Facebook:
[loginManager logInWithReadPermissions:@[@"email", @"public_profile", @"user_birthday", @"user_friends"]
fromViewController:self
…

bashan
- 3,572
- 6
- 41
- 58
0
votes
1 answer
PHP Facebook SDK - possible to automatically refresh token?
Currently I'm able to get an access token by asking user to log into Facebook and accept my app.
I can also get a long-term token, but what if that app should automatically retrieve data (images) after months?
Is there a way to store a token and…

a-coder
- 291
- 2
- 14
0
votes
1 answer
How can I get all Facebook public events those locations ids are same to the specific given location id using Facebook Graph Api?
Right now, I'm getting nearby events(but not all the list) on the basis of following two graph api call:
First (getting nearby location ids):
search?q=*&type=place¢er=lat,long&distance=50000&
limit=10000&fields=id,name
Second (and getting…

Taimur Siddiqui
- 1
- 2
0
votes
1 answer
facebook audience network testing on test flight No Fill
testing our app when running on xcode is good and we can see ads even without test mode (device hash), so we can see live ads. Everything is setup fine, but when we test the app on test flight, It's always returning a log of "No Fill".. :S,
We have…

GinealSoftwareDev
- 133
- 1
- 9
0
votes
1 answer
Post comments on facebook via android sdk
I am trying to publish a comment from my android app onto the links from facebook. I have successfully obtained the {object-id} from facebook via GET Graph API.
Below is the code I am using to post a comment:
Bundle params = new Bundle();
…

Vaibhav Singhal
- 888
- 9
- 13
0
votes
1 answer
InvalidArgumentException when attempting to install facebook/php-sdk-v4 via composer
I'm attempting to install the latest Facebook SDK via composer however I receive this error:
$ composer require facebook/php-sdk-v4
[InvalidArgumentException] …

John the Ripper
- 2,389
- 4
- 35
- 61
0
votes
1 answer
encounter "Web share dialogs cannot include photos" error in Facebook iOS SDK 4.10.0
I am using Facebook iOS SDK 4.10.0 to share a photo FBSDKSharePhotoContent using the following code:
FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init];
dialog.fromViewController = self;
dialog.shareContent = content;
dialog.delegate =…

chubao
- 5,871
- 6
- 39
- 64