how to invite friend in facebook api to list friends - facebook

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

Related

Tag usernames on messages with the Facebook feed post wall API

Is it possible to send a message tagging a facebook user using Facebook Graph API? (from facebook PHP SDK)
I've tried the #[id:1:name] method, but it doesn't seems to work. Also, I tried using the message_tags parameter, but no luck. Have anyone done this before? As far as I know, Facebook disabled this option time ago; am I right?
As far as what i know, it's not supported and it's not possible via their graph api, but i think i came across a link via google which shows a trick to tag anything with any link.etc.
Here it is: Click here
P.S I personally didn't test that trick, but i did try tagging using graph api but it didn't work.
Try this, check the Mentioning friends https://developers.facebook.com/docs/opengraph/guides/tagging/

Programmatically posting Facebook comments

My application has obtained publish_stream permissions for a Facebook user.
I'd like to allow the user to post comments for a target URL directly from my mobile application, rather than opening up an embedded browser that then shows the Comment Box plugin. That is, the user doesn't necessarily want to post the link to their feed -- rather they want to participate in any Facebook comment discussion that surrounds that URL.
Naturally, I can read the comments for any URL via the Graph API (eg: a techcrunch article) but I do not know how, or if I can add comments to an arbitrary URL programmatically.
Would love to hear any other suggestions or workarounds as well. My hope is to piggy back on Facebook comments to allow my users to have a conversation surrounding URLs of interest to them. If at all possible, I'd also prefer to use Facebook, though I can see using Disqus or similar services would be another possibility.
Use graph api, demo comments here
make POST to
http://graph.facebook.com/comments/?ids=http://techcrunch.com/2011/07/22/big-surprise-the-ipad-trumps-android-tablets-at-the-office/
with field message and value "yourmessage"
I genuine Facebook API bug.
Cannot comment via Graph API on Comments Plugin (Probably try Legacy API)
Graph 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.

Facebook Questions API

Facebook has officially launched its Facebook Questions. Does anyone know if it's possible to add one of the new Facebook "Question" polls through the Graph API? If so, how?
Thank you very much
They just announced this is available on their blog. To get them, issue an HTTP GET request to the USER_ID/questions endpoint with the user_questions or friends_questions permissions.
Update: they also just announced that you can create questions now via the API.
I've searched the http://developer.facebook.com page for poll related search terms and also online. This yielded no notable results.
It's probably worth making a poll with an external website, most I'm sure are compatible with the Open Graph but will not provide the Facebook interface that you expect on Facebook itself.
This has been deprecated as of Grpah 1.0 - https://developers.facebook.com/docs/graph-api/reference/v2.0/question

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!