Getting my facebook friends IDs for javafx desktop application - facebook

Developing a desktop application(javafx) where I need to retrive a list of my Facebook friends ID - what I know so it'is imposible to do by just sending ".../me/firends" (with version 2.3+) because that give me in responds just a number of friends.So I figure to use facebook friend selector to first send invite and in case of acceptance get user ID-but it seams like invites are only available for android and ios link - any ideas how can I takle that issue?

Related

How can i get requestId from facebook api when i invite someone

I want to use facebook unity sdk to achieve the function that can invite new player from my facebook friends.I can't find how to get requestid if the friend click the notify then he go to appstore and download the game.
I already know i can get all requests from facebook by using me/appresquest function,but it is not my wonder.I just want get a definite requestid so I can only get one invter to give him reward when a friend click the notify who send to.the facebook just say "When a recipient accepts a request on a mobile platform, this will deep-link to the app. An additional parameter will be present in the loading of the app, the request ID."
I coundn't find any ways to get the purpose.From the docs,I guess the requestId will be sent to ios or Android when the new user click the notify,then the player download the game.the os will give the requestId if the player first open the app,the facebook Unity SDK could get the requestId,so the developer could get it from SDK.but is that right?i don't know,and i want to know how to get it.
Please help me (some question is so far from now,i think it's out of time,please give me the lateset advices)

IOS - Facebook how to invite friends to download app?

I have an Ios app , i'm trying to implement this flow:
User click a button->a list of my facebook friends appears-> i select one or more friends-> to each of this friends the app sends an invite to download the app from store-> i count and save locally the number of friends invited.
I have read documentation and the FBSDKAppInviteDialog seems to be the right choose. I have implement this solution and then i have discover this:
In ios 9 i can't switch in the fb app during the login
I can't know how many friends i have invited
The safariviewcontroller can't dismiss after an invite
The documentation is invisible
and maybe so on...
I have removed this FBSDKAppInviteDialog, it can't be a solution.
After hours i'm very frustrating, anyway i have see the candy crush app. It can send invites in in web browser,facebook app,mobile browers and it can select multiple facebook friends. Anyone know how achive the same result? I can replicate with Graph?
In ios 9 i can't switch in the fb app during the login
This is expected behavior, on iOS9, the Facebook SDK will fallback to a SFSafariViewController based approach for most of the dialogs
I can't know how many friends i have invited
As far as I know, the dialogs never supported this.
The safariviewcontroller can't dismiss after an invite
This seems to be a functionality SFSafariViewController doesn't support (dismissing it from within the loaded page).
The documentation is invisible
The documentation for the FBSDKAppInviteDialog works fine for me (https://developers.facebook.com/docs/app-invites/ios). If this is not working for you, it'd be a good idea to file a bug report at https://developers.facebook.com/bugs so Facebook can look into it and fix any bugs that might be present

Facebook SDK capabilities WP8

I am integrating facebook in WP8 app for login,Post on wall(Share),Invite friends.
Here I am using Facebook SDK for .Net
Using SDK's capabilities I am able to do login using In app browser, Post on wall(Share).
I user me/taggable_friends GRAPH API for getting friends list as me/friends returns only those friends who are using our app.
My app is not Game App so I can't use invitable friends API.
My Question is: How to invite friend?
If its not possible, Can anyone tell me the official list of possible things with facebook sdk on windows phone 8 except this.
UPDATE: I am able to send app request using this link, but not seen any request came on receiver's facebook account.
Thanks,
Replies are really appreciated.
I had similar problem and I used this method which works for me
Use a WebBrowser control and set the Url as
Uri inviteUri = new Uri("https://m.facebook.com/dialog/apprequests?app_id={app_id_goes_here}&message=YOUR_MESSAGE_HERE!&redirect_uri=https://apps.facebook.com/{app_id_goes_here}/", UriKind.RelativeOrAbsolute);
From this you can search for your other friends who are not using the game yet.
Hope this works for you too.

Is this the best way to integrate and use the Facebook API "toolset" in my quiz game?

Im currently building a simple time based quiz game with Javascript. In this game im looking to enable the option of being able to challenge your facebook friends.
This has naturally had me look at the Facebook (API) tools available that would allow me to interact with the targeted friends to be challenged.
Im wondering if anyone could comment on my approach of the Facebook tools intended to be used and whether there's actually some better approach or even Facebook tools that I have missed and should consider in my setup.
My intention is to interact and engage with the friends I challenge / invite using the most relevant Facebook tools available.
1. FB Login - USER CREATE / LOGIN
The user connects through Facebook login - either creating a
user profile or automatically getting logged in upon visit, if the
fb_uid already exists in the DB. We get access token, email and all the basic stuff.
2. FB Request dialog - CHALLENGE YOUR FACEBOOK FRIENDS
The user clicks a "Challenge your friends" button and the Facebook Request dialog is initiated showing the inbuilt Facebook multi friend invite selector box. The user click some friends and submits.
= RESULT - A request to the friend is now viewable and visible in the App center
3. FB App Notifications - Engage more "visible" with your challenges friend
Upon submit from step nr 2, we would also initiate a App Notification call to the Graph API, that would eneable us to "post" a notification direct into the challenged notification tray.
There are some restrictions on which user you can post directly into the tray at, which would leave us to do some pre-checking on the basis of:
3.1 - First check if the challenged/invited user already has authorized the app
3.2 - If 3.1 is true, then initiate the App notifications Graph API call = notification posted to the tray.
One important note to this step - i've read that before you can initiate this call, then you need to fetch the Access token of the app itself and make the call to the Graph API with the app access token and not the user access token - not sure if anyone can confirm this.
3.3 - If 3.1 is false, then we're just left with the request to the app center.
QUESTIONS:
Q1. The intended interaction of challenging/inviting your friends in step nr 2 "worries" me a bit. Seeing the request ends up in the App center ONLY, the only way the user will see the notification is "accidently" seeing a number next to the App center left menu link. To me it seems unlikely few people will react to this??
Q2. The real engaging interaction seems to be in App Notifications - however you can only use this with users that ALREADY have accepted your app, leaving out a big chunk of people to interact more "visible" with.
I do know this restriction is probably due to spammy behaviour.
Are this really the most optimal approach of the Facebook toolset I can use in my little game?
The general idea of your approach seems fine. I've never had any experience with App Center, so i can't really comment on how effective and easy it would be implementing that approach, but there is an alternative.
Instead of inviting friends through App Center, you can simply leave a message on their wall using JS feed dialog, asking them to join you in the game (Leave a link or something that will handle the challenge part)

How can I use the facebook connect api for the iphone to to invite friends to an application or send a message

In my iPhone application, I wanted to add the function of signing into Facebook and letting a friend know about the app. I know how to sign in and get the friends list, but I cannot find a good way of inviting a friend. So far, I haven't been able to come up with a way to invite a friend (I don't think one can with the iphone facebook sdk yet) or send a message to the inbox. Is there a way to do either of these? If not are there any better options I haven't thought of? Thank you for any advice.
checkout this tutorial. i used it to get the facebook header files sorted out. Once thats done, everything should be in place for you to send a message easily :
http://www.mobileorchard.com/marketing-in-code-part-2-setting-a-users-status-in-facebook-from-an-iphone-app-a-tutorial/
check out This post.it shows what camn we do with facebook api