How do i get the facebook post id?


a7madx7

How to extract post id after posting post using Facebook method Post() or PostTaskAsync() ?

I use JSON.Netsomething like this

var postObject = await fb.PostTaskAsync("/me/feed", postArgs);               
dynamic result = JsonConvert.DeserializeObject((string)postObject);
string id = result.id;

But it doesn't work!

What is the proper way to use it facebook c# sdk v 6.x?

Scott Selby

You don't need to deserialize the response to use it the way you want

dynamic postObject = await fb.PostTaskAsync("/me/feed", postArgs);    
string id = postObject.id;

I haven't used PostTackAsync either, is it possible that the postObject hasn't been populated when you try to read it? I'll try to just post periodically fb.Post("/me/feed", postArgs)and see if that works.

If that doesn't solve the problem, then you will have to set a breakpoint and read the actual response. You probably don't have the correct permissions and are getting some type of error. If this doesn't work for you - you can post the actual response you got, it will be much easier to help

Related


How do i get the facebook post id?

a7madx7 How to extract post id after posting post using Facebook method Post() or PostTaskAsync() ? I use JSON.Netsomething like this var postObject = await fb.PostTaskAsync("/me/feed", postArgs); dynamic result = JsonConvert.DeserializeObject((

Get a Facebook post by ID

Kelly Then I want to get the post where I get the error: { "error": { "message": "Unsupported get request.", "type": "GraphMethodException", "code": 100 } } and request : https://graph.facebook.com/100002485262717_622325677860269?access_token=token&a

Get a Facebook post by ID

Kelly Then I want to get the post where I get the error: { "error": { "message": "Unsupported get request.", "type": "GraphMethodException", "code": 100 } } and request : https://graph.facebook.com/100002485262717_622325677860269?access_token=token&a

How do I get a Facebook username?

Attila Naghi I'm a completely new Facebook developer. This is the sdk version I'm using: click . Here is the login part: <?php require '../src/facebook.php'; $facebook = new Facebook(array( 'appId' => 'XXXXXXXXXXXXXXXX', 'secret' => 'XXX

How do I get a Facebook username?

Attila Naghi I'm a completely new Facebook developer. This is the sdk version I'm using: click . Here is the login part: <?php require '../src/facebook.php'; $facebook = new Facebook(array( 'appId' => 'XXXXXXXXXXXXXXXX', 'secret' => 'XXX

How to get Facebook post ID from ad using API?

Ryan I'm very happy with the Facebook Ads reporting tool I built myself. It lists all campaigns in an ad account, and all ad sets in each campaign, and all ads in each ad set. It shows the metrics I care about. But I haven't been able to figure out how to retr

How to get Facebook post ID from ad using API?

Ryan I'm very happy with the Facebook Ads reporting tool I built myself. It lists all campaigns in an ad account, and all ad sets in each campaign, and all ads in each ad set. It shows the metrics I care about. But I haven't been able to figure out how to retr

How to get user facebook id in post (server side) meteor

Boaz I have a Facebook request dialog for inviting friends to my app, and of course I get a response with the invited user id, which I then store in a user document called "groups" In the collection: { "creator" : "qzD5X33Jejq5BYRdZ", "name" : "Soccer", "email

How to get Facebook post ID from ad using API?

Ryan I'm very happy with the Facebook Ads reporting tool I built myself. It lists all campaigns in an ad account, and all ad sets in each campaign, and all ads in each ad set. It shows the metrics I care about. But I haven't been able to figure out how to retr

How to get Facebook post ID from ad using API?

Ryan I'm very happy with the Facebook Ads reporting tool I built myself. It lists all campaigns in an ad account, and all ad sets in each campaign, and all ads in each ad set. It shows the metrics I care about. But I haven't been able to figure out how to retr

How do I post text and images to the Facebook news feed

skylight I'm pretty new at integrating Facebook into an iOS app. I've read three books, studied Facebook's examples, and studied Facebook's tutorials, but I don't understand Facebook's integration. I understand how to register the app on Facebook, but I don't

How do I add an action to post to my Facebook wall?

pass through I use the Facebook SDK for .NET and I can post it to the user wall using an app token. Code example where I create the post: dynamic messagePost = new ExpandoObject(); messagePost.picture = "http://cs608830..........jpg"; m

How do I post text and images to the Facebook news feed

skylight I'm pretty new at integrating Facebook into an iOS app. I've read three books, studied Facebook's examples, and studied Facebook's tutorials, but I don't understand Facebook's integration. I understand how to register the app on Facebook, but I don't

How do I get my $_Post to work

turquoise I'm trying to get my site to submit an email every time someone sends a message (now I'm struggling to get variables to work...). It's a learning process, so I'm giving it my all here, just trying to teach myself. But don't like global php commands $

Facebook Graph API - How do I get everything I like?

Alain I am new to API. I tried /me/likes in the graph explorer and it only returns the pages I like (correctly according to the api reference). However, I want to get everything I like, including posts, photos, status, etc. Any insight? Matthew in Critical Cog

How to get Facebook Post details?

Bill Software Engineer Unfortunately, I can successfully query posts with this code, but the only information returned is created_time, message and id. How can I get other information like title, description, links and images? FB.api( '/1494363804210145_10

How to Get Facebook Post Permalinks

Sid Verma When fetching the list of posts using Facebook's Open Graph API, what we get is the post ID like XXXX_YYYY which can be converted to facebook.com/XXXX/posts/YYYY But these links don't work with Facebook embed plugin : https://developers.facebook.com/

How to get Facebook Post details?

Bill Software Engineer Unfortunately, I can successfully query posts with this code, but the only information returned is created_time, message and id. How can I get other information like title, description, links and images? FB.api( '/1494363804210145_10

Facebook API to get recent post id

Jack Evans I'm currently working on a small PHP "script" that will automatically get the post ID from the latest post on a Facebook page. So far I get: $status = $facebook->api("/645017715510822/feed?fields=id&limit=1&access_token=".$token, 'GET'); When I run

Facebook API to get recent post id

Jack Evans I'm currently working on a small PHP "script" that will automatically get the post ID from the latest post on a Facebook page. So far I get: $status = $facebook->api("/645017715510822/feed?fields=id&limit=1&access_token=".$token, 'GET'); When I run

how do i get guild.id

vijat6856 I'm putting together a class with proper permissions, but I need some kind of guild ID. How can i get the guild server id by the user who wrote this command if (message.channel.type === "text" && message.guild && message.guild.ownerID == message.

how do i get the comment id

PoVa I'm developing a simple Blogger app and I'm trying to add commenting functionality to it. I'm trying to add delete/edit functionality to comments, but I don't know how to get the id of the comment I want to edit. This is what the html code looks like: <

how do i get guild.id

vijat6856 I'm putting together a class with proper permissions, but I need some kind of guild ID. How can i get the guild server id by the user who wrote this command if (message.channel.type === "text" && message.guild && message.guild.ownerID == message.

how do i get the contact id

Christian Mandel I have a problem getting the contact id from the address book. My .m file: -(IBAction)test:(id)sender { ABPeoplePickerNavigationController* picker = [[ABPeoplePickerNavigationController alloc] init]; picker.peoplePickerDelegate = self;

how do i get the comment id

PoVa I'm developing a simple Blogger app and I'm trying to add commenting functionality to it. I'm trying to add delete/edit functionality to comments, but I don't know how to get the id of the comment I want to edit. This is what the html code looks like: <

how do i get guild.id

vijat6856 I'm putting together a class with proper permissions, but I need some kind of guild ID. How can i get the guild server id by the user who wrote this command if (message.channel.type === "text" && message.guild && message.guild.ownerID == message.

how do i get guild.id

vijat6856 I'm putting together a class with proper permissions, but I need some kind of guild ID. How can i get the guild server id by the user who wrote this command if (message.channel.type === "text" && message.guild && message.guild.ownerID == message.

how do i get guild.id

vijat6856 I'm putting together a class with proper permissions, but I need some kind of guild ID. How can i get the guild server id by the user who wrote this command if (message.channel.type === "text" && message.guild && message.guild.ownerID == message.

how do i get guild.id

vijat6856 I'm putting together a class with proper permissions, but I need some kind of guild ID. How can i get the guild server id by the user who wrote this command if (message.channel.type === "text" && message.guild && message.guild.ownerID == message.