I am trying to use the Facebook Developer Toolkit (http://facebooktoolkit.codeplex.com/) to publish user messages from my .NET applicationn.
I have a user id for a facebook user. My question is, how do I publish a message to this user's Facebook stream? Currently, I written have the following code:
ConnectSession session = new ConnectSession(ApplicationKey, SecretKey);
if (session.IsConnected())
{
Api facebook = new Api(session);
Facebook.Schema.user user = facebook.Users.GetInfo(userID);
facebook.Stream.Publish("Hello");
}
From the best I can tell, this code only publish's a message to the currently logged in user. But I do not think it publish's a message on the user with the userID's stream. How do I post a message on a Facebook user with a specific user id's stream?
Thank you!
Best Answer
try first login...
then you can publish.... like this..
or this.. ñ_ñ
Grettings i hope this its useful for you..ñ_ñ