Can I use some API call to invite User's Friends? - facebook

I want to invite facebook friends to my app. via some sort of API call whether rest or PHP Sdk, so is there a way to do so. I know about multifriend selector in FBML but don't want that. Please tell that which API can be used to do so? Graph API or any other? I am using PHP so if you know some PHP API call then that is also good.
thanks in advance for assisting me.

You can use the Requests Dialog for invites. This will prompt the user for which friends to send a request/invite to. This is designed to work in iframe apps, no fbml required.
http://developers.facebook.com/docs/reference/dialogs/requests/

Related

Is it possible to have a Voice and Video call feature for a Facebook page messenger app that I created in my site?

I am working on implementing Facebook PAGE messenger for my site and I want to add a feature that I can call Facebook User who message my Facebook PAGE. I already search on google about this matter but still no luck. is this possible to do?
If not possible do you have any suggestion how can i call the Facebook User and how can I implement it in my site.
Thank you in advance happy coding
This is not possible using Facebook provided API's.
However you can send the user a Call button with your businesses phone number which they can one-click to call you.
https://developers.facebook.com/docs/messenger-platform/reference/buttons/call/

how to invite friend in facebook api to list friends

how to invite friend in facebook api to list friends usign c# or Vb net or php
I looked in the documentation but I did not thank you for helping me find
Requesting Friendship is not possible (anymore), see docs: https://developers.facebook.com/docs/dialogs/friends/v2.1
This was removed as of Graph API version 2.0
It is only possible to open a dialog in v1.0, sending friend requests without a dialog is not possible even with v1.0.
You are looking for
https://developers.facebook.com/docs/graph-api/reference/v2.1/user/friends#readmodifiers
In short though this only works if both of the users are users of your app and you have the appropriate permissions.
The application listed in your example either does this, or it is using the old api and will have to change in the future when V1 is removed. On a side note, you shouldn't post your follow up as an answer to your own question but as a comment

Block a user using Open Graph API

Is it possible to block a user on Facebook using the open graph API?
I am NOT looking to block a user from an App, but would like to allow users to block a facebook friend if they wish in my app. This would be the same as visiting Facebook.com and blocking a user which hides them from all of your feeds etc.
So far I have done a lot of digging and cannot find an answer. Still pouring over API but figured I would see if anyone has nay experience.
Thanks!
No, it is not possible to modify a user's friend list or blocked list via the API

How to invite friends using facebook?

Note: dont think it as repeat of any other similar questions.
We have options to display the 'Invite Friends' dialog using Legacy FBML and javascript (it also uses FBML) and they are working fine.
As facebook states that these FBML are going to be deprecated, is there any other better to way to Invite/ send requests to friends to join an application ..
I'm in the initial phase of my db app development and dont want to use the to be deprecated stuffs.. Is there any option using GRAPH Api?
Edit: I'm using PHP SDK for this app development and is there any function we could use from that?
The requests dialog is currently the only non-deprecated method of inviting your friends to a Facebook application. I doubt there will be a graph api method to create them as it would seem to be too easy to abuse, but getting, clearing and deleting them are available with the graph api.

Using both Facebook Graph API and Old Rest API? Please help!

I am developing a Facebook application that will use Facebook events.
I want to be able to create and edit event as well as invite users friends to the event.
I prefer to use the new Graph API to handle all connections with Facebook and I many ways I am able too, but, the Graph API cannot send invites.
I saw that the Old Rest API got far more ways to interact with Facebook so I tried to use both systems on the same time but when I send the Access token that I have created with the Graph API a long with a call to the old API it says "Invalid OAuth 2.0 Access Token".
My question is, is there a way to convert the new Graph API access token to be used with the old rest API? Is there perhaps another way to get both systems to work in the same application?
Please help! All input are welcome.
I´d recommend against the old REST api. Support will be canceled sooner or later and then you will have to port to graph api anyway.
To send invites to your app you can use fbml/xfbml. try the http://developers.facebook.com/docs/reference/fbml/multi-friend-selector togehter with the JavaScript SDK as described here: http://www.takwing.idv.hk/tech/fb_dev/jssdk/learning_jssdk_11.html
good luck!