简体   繁体   English

使用C#SDK获取Facebook帖子

[英]Get facebook post using C# SDK

Is there any way to get information about a post using the facebook c# sdk? 有没有办法使用facebook c#sdk获取有关帖子的信息? I have the post id so I am trying to query the facebook server using that. 我有帖子ID,所以我试图使用它来查询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");

I have tried a Get using the c# sdk 我尝试使用c#sdk获取

you can get through graph api and passing an access token 您可以通过图形API并传递访问令牌
// Note :replace ur_postid with the actual postid and ur_accesstoken with ur facebook access token //注意:将ur_postid替换为实际的postid,将ur_accesstoken替换为ur facebook access token

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");

// you can use graph api explorer to test it //你可以使用图形api explorer来测试它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM