prabirshrestha / FacebookSharp

Facebook Graph API for .Net
Other
30 stars 15 forks source link

access email id and post to wall #22

Open arnab74 opened 13 years ago

arnab74 commented 13 years ago

Prabir hi, how do I access the logged in user's email id. access the user's friend's email id and image post to wall of user and his friends

I would like to use mvc2

Thanks and best regards Arnab

arnab74 commented 13 years ago

I was able to access the logged in users email id and post to his wall. But still not able to display his friends, get their email id and post to their wall.

prabirshrestha commented 13 years ago

make sure you have the right extended permissions. you can read about the details on http://developers.facebook.com/docs/authentication/permissions

if u want to see how to get those permissions, i highly recommend you to read README.md It is explained thoroughly on how to ask for those permissions when authenticating the user.

fbSettings.DefaultApplicationPermissions = new[] { "publish_stream","create_event" } };

arnab74 commented 13 years ago

Thanks for the reply. I see that it's not possible to access friend's email, but is there any way to send messages to friends? Tx Arnab

arnab74 commented 13 years ago

I found notifications.sendemail (I think its rest api) but how do I use it , could you please give the code block.

Tx Arnab

prabirshrestha commented 13 years ago

currently im quite busy merging FacebookSharp with Facebook C# SDK. You can read the details about the merging at http://ntotten.com/2010/11/the-state-of-net-facebook-development/

you can also see the discussion on Facebook C# sdk at http://facebooksdk.codeplex.com/discussions

if you have questions general to Facebook rather than the SDK i would highly recommend you to post it in stackoverflow.

"Questions about how to use this SDK and general Facebook development questions should be posted on Stackoverflow.com using the 'facebook', 'facebook-C#-sdk', 'C#', 'VB', and '.Net' tags as appropriate."