Facebook Wall Post - facebook

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.

Related

How this Facebook API Program Capture Visitors Name and Email without Permission

I wonder How this Facebook API Program Capture Visitors Name and Email without Permission. I visited a Facebook page today and found that my name and email automateically appear when I click on the post image. I guess they are doing it with the latest Facebook SDK.
This is the post I am referring to.
This is the page about their API Script.
Can anyone tell me where I can setup the same using PHP. I could not locate any information in Facebooks developer page. Highly appreciate your feedback.
Ishaq.
Looks like Lead Ads, the docs are full of example code:
https://developers.facebook.com/docs/marketing-api/guides/lead-ads/v2.5
https://www.facebook.com/business/help/397336587121938/

How to automatically post to facebook wall?

I am creating a meteor blog and I want to make my blog post automatically posted to my Facebook wall. Moreover i will make this blog a multi user blog so any user who posts on this blog, their post will also be posted to their respective Facebook wall. I don't need specific meteor way of doing this but i would like to know how this can be achieved in general. If there are multiple ways, please tell me that too.
Todos
User needs to login to facebook or any such services from your app.
Your app requires approval(permissions) to post on user's behalf.
You expect your app to be database driven.
There is a meteor way to achieve these workflow. Refer this doc which showcase meteor's in-built service,
Meteor.loginWith<ExternalService>([options], [callback])
All necessary data like access token, email will be saved in server i.e. mongodb database.
Once user successfully logged in, you can publish post from your client. You may like to go through this javascript quickstart for Facebook SDK Graph API.

Send Message to Friend On Facebook with C#

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.

Facebook PHP SDK - Post to user's wall as app and not user. How?

I have a few questions about Facebook PHP SDK I haven't found the answers to yet, hope someone here can help.
I have made a page where users connect to Facebook to be able to share things via my site on their wall. I don't want to use the offline_permission. But I need to be able to delay post, cause sometimes we need to confirm choices they use. I read that YOU CAN post at any time with stream_publish, but you need to post as THE APP and not THE USER. Right now I think I post as the user. How do I post as the app?
Thanks!
Read the Facebook Authentication documentation, specifically the section titled "App Login" where it tells you how to authenticate as the application. Basically you navigate to this url: https://graph.facebook.com/oauth/access_token? client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials and that will give you a session token to act as your page.

Post status update to Page Wall

I'am really new to all this Facebook development, and I wanted to integrate Facebook within my personal website.
I am now trying to test if what I want is possible.
I want to post a status from my server, via php/js to my Page in Facebook.
How can I do so?
B.W.
I saw that there is this FBJS function called "Facebook.streamPublish"
But I don't know how to integrate it.
Is there any possible way to do so?
Can you give me an example?
-Secondly, what is an access token?
You get an access_token after facebook authenticates you. You will need this access_token for all subsequent API calls. You can find the details here:
http://developers.facebook.com/docs/authentication/
You can use graph API for publishing on the wall and doing other allowed actions. Details of publishing api can be found here:
http://developers.facebook.com/docs/reference/api/post/
But do have a look on the facebook policy, because publishing automatically to a wall is considered violation.
http://developers.facebook.com/policy/