To create authorization process for facebook needs to place two buttons for authorization on a web form. In the authorization button click event, I write the code for my Website Url which needs to Redirected and Client Id Which I Got when I Register my Application.
After the user authorizes, I will receive an OAuth code then Used the URL to get the access token for that user. After got the token I used the [login to view URL] DLL to parse information from Facebook.
Next to post text to the page needs to Append the user's access token to the URL, then I passed name, caption, description and messages through key-value pairs. Then call the post method through webRequest.
Then I Send the request to Facebook, and query the result to get the confirmation code like-
try
{
sr = new StreamReader([login to view URL]());
string PostID = [login to view URL]();
}
Then I used the AppendKeyvalue method to append key-value pairs like-
return [login to view URL]("{0}={1}&", [login to view URL](key), [login to view URL](value));
From this code I found post ID when post was posted successfully.
Here all Access tokens are different for different users so that I can post the new post on different user's page.
In the source code of Facebook messaging, there is a property named html_body and its default value is null so I think that it can be changed by some method and then HTML messaging of wall posting may be possible.
Ping me for a discussion.