使用C#SDK获取Facebook文章

问题描述:

有什么方法可以使用facebook c#sdk获取有关帖子的信息?我有帖子ID,所以我试图使用它来查询Facebook服务器。使用C#SDK获取Facebook文章

string test = VendorShop.Services.Sess.getQueryString("signed_request"); 
var signed_request_obj = testClient.ParseSignedRequest(appSecret, test); 
var obj = testClient.Get(
    "https://developers.facebook.com/tools/debug/og/action?q=330203520408060"); 

我已经尝试了获取使用C#SDK

您可以通过图形API获取和传递的访问令牌
//注:实际帖子ID和ur_accesstoken替换为ur_postid乌尔Facebook的访问令牌

string test = VendorShop.Services.Sess.getQueryString("signed_request"); 
var signed_request_obj = testClient.ParseSignedRequest(appSecret, test); 
var obj = testClient.Get(
"https://graph.facebook.com/ur_postid?access_token=ur_accesstoken"); 

//你可以使用图形API资源管理器来测试它