Send Message to Friend On Facebook with C# - facebook

I am new on Facebook API. I want to send message to friend with facebook api. I am developing a desktop application in c#. And I used graph.facebook.com but I can see just some information. I think that to login facebook system and after send message some id. I looked developers.facebook.com but I didnt find useful information. Maybe I looked in wrong way..
I need some advice about it (how to login and send message)
I followed function of messange sendin on google chrome and I saw send.php worked . But I want to use Facebook API

By design Facebook does not allow the API to send messages. You can post on the other users wall, or send them an email.

Related

Facebook Message To All Friends

Is there any way by which I can get all the friends using FB api and than message all of them.
Which approach is better to achieve it, a bot or using facebook api?
If Bot, than which bot can be used as a kickstart, which programming language is preferred?
JAVA,ASP.NET
It is not possible to get all friends - only those who authorized your App. Also, it is not possible to send a message to friends with the API, you can only use the Send Dialog and let the user specify the recipient on his own: https://developers.facebook.com/docs/sharing/reference/send-dialog
What you want to achieve would be possible with a bot though. Users can register to get messages from the bot, so you can create an alert system with it. More information: https://developers.facebook.com/docs/messenger-platform/
It would be a general alert system though, not between friends. For that, i would recommend not using Facebook but Emails.

Facebook api feed : how post message in a single user wall?

I use facebook SDK javascript to post a message from a website to my wall on facebook.
When I post, I can choose the users who can read my message.
Can I change the script to send a message directly to one or any users automatically?
To send a private message through facebook API is not intended behavior. to prevent spam it is assumed. This can be overcome by sending an email to facebook_username#facebook.com and it will appear as an instant message to the user. This is NOT an intended solution however and it is EXPRESSLY discouraged in the facebook docs.

issue in sending private message to facebook friends with facebook application

i am working on a facebook application , i need to send a message to user facebook friends , is that possible to send without opening the facebook send message dialog box, because when i use facebook SDK it uses its ui to preview , i also tried using direct url
http://www.facebook.com/dialog/send?app_id=658662621626&name=People%20Argue%20Just%20to%20Win&recipients[0]=466565&link=http://www.redbuffer.com&redirect_uri=http://www.example.net/FB-app/
is their any other method by which i will be able to send private message
to facebook friends
My initial thought is a resounding heck no. The reason? They would open themselves up to spamming if they allowed API's to directly send messages. Just a guess though.

How can i send app request to both FB friends and application users?

I've a situation in my application where I need to send apprequests (or any way of sending any request to my users) for both my facebook friends as well as the same application users.
The problem with this is ,
when we are sending apprequests using application itself(using app_access_token) we can't send app requests to my facebook friends who are not yet part of my application ("oAuthException : User must accept TOS" will be thrown).
So when i use the 'Request dialog' (FB.UI app request method) its possible to list/send requests to only FB friends .
So i need a solution for having a method where i can list all my user's FB friends and application users and send apprequest at once to all..
Anybody has tried something like this before?
And also i tried FB.UI (send method) and searched for graph API and also considered option of posting wall message and everything doesn't work both types..
Any help on this?
May I draw your attention to the following Facebook Documentation for AppRequests:
http://developers.facebook.com/docs/reference/dialogs/requests/
You need to have a look at the section headered "Frictionless requests".
From what I understand from this sentence:
Upon first sending a request to a friend from within an app, a user may authorize the app to send subsequent requests to the same friend without prompting for his permission.
It sounds like there is no way to "bulk" send to all of a user's friends, it is on a friend-by-friend basis. It sounds sensible to me, I wouldn't want my all of my Facebook friends to be flooded with invitations either.
You could however opt for prompting the user with the Friend Request interface which is much friendlier to your users... this is available using the Javascript SDK.

Facebook Wall Post

I have created one Web Application in ASP.Net. In That am able to connect with FaceBook and getting data from logged in user's profile. now i would like to post a message on wall. i have found the STREAM.PUBLISH method but i dont know how to use it. it asks me for permission. so is there any other way to post message on wall, any exmple using ASP.Net
Thanks
Here you can find a tutorial about it:
http://www.barattalo.it/2010/01/17/posting-to-facebook-from-website-with-facebook-connect/
Since it's written in php you have to translate something, but the important job is made with the facebook javascript api.