How to get Product Last Update DateTime from Facebook API? - facebook

In Facebook API using this endpoint:
https://developers.facebook.com/docs/marketing-api/reference/product-catalog/products/
I would like to get the date of last edit available in Facebook Business Manager in the extra information:
Using the graphql explorer https://developers.facebook.com/tools/explorer/, I'm able to get most of the information I need but not this one:
/{CATALOG_ID}/products?fields=additional_variant_attributes,ar_data,age_group,commerce_insights,condition,currency,custom_data,custom_label_0,fb_product_category,expiration_date,errors,description,custom_number_4,custom_number_3,custom_number_2,custom_number_1,custom_number_0,custom_label_4,custom_label_3,custom_label_2,name,mobile_link,material,ordering_index,origin_country,parent_product_id,pattern,post_conversion_signal_based_enforcement_appeal_eligibility,product_catalog,product_feed,product_group,product_type,quantity_to_sell_on_facebook,retailer_id,retailer_product_group_id,review_rejection_reasons,review_status,price,marked_for_product_launch,manufacturer_part_number,manufacturer_info,inventory,invalidation_errors,importer_name,importer_address,images,image_url,image_fetch_status,image_cdn_urls,id,gtin,gender,custom_label_1,color,category_specific_fields,category,sale_price,sale_price_end_date,sale_price_start_date,shipping_weight_unit,shipping_weight_value,short_description,size,start_date,url,additional_image_cdn_urls,additional_image_urls,applinks,availability,brand,capability_to_review_status,visibility,wa_compliance_category,channels_to_integrity_status,product_sets&limit=10
Is there a specific field not available in the graphql explorer that I need to add? Or another endpoint to get last update time?
Thanks

Related

Which Instagram API should I use to collect public data?

Does either the Instagram Basic Display API or the Instagram Graph API allow me to simply get any public user's posts/media programatically? Everywhere in the documentation it says "User data" but it feels like I can only get data of the user that got authenticated using the API. I've set up a Facebook dev account and currently spending 4th hour on calling both APIs without success. Can anyone who has used them help me clear this up?
Most likely, Instagram API Date 365, a tool I currently work for, may help you as an alternative to using Instagram Basic Display API or the Instagram Graph API because this API is created especially for scraping bulk data about posts and users.
You can get such post data as post content (text, language, list of hashtags, list of tagged users), owner ID, location ID,
engagement info, etc. Also, it is possible to download comments (selected or on a specific post) and replies to them.
You can view this for more info.

Facebook graph api search in page conversations by user name

I am using facebook graph api with this edge
me/conversations?fields=participants
Graph API Explorer
this get list of conversation for my page using page access token. Now i need to search in this list by user name
Any suggestion to do that directly with API or any workaround ?
As a workaround you can call with the limit parameter set:
me/conversations?fields=participants&limit=500
It will show you 500 latest threads. Then cmd+f (ctrl+f) and type the name you are looking for.

Does facebook have the data about when a user adds a reaction to a post?

I am trying to collect data about a post on facebook from its graph api. I am able to get all the other information (like comments, when the comment was created, who created it, etc etc) but i am not able to find the timestamp on the reactions. That is i want find out at what time (and date) did the user add the reaction. Does facebook have this information? If yes, then how do i get that information using graph api?
Does facebook have this information?
Most likely they do.
If yes, then how do i get that information using graph api?
You don’t, because they do not provide that information via API.
For a page you manage you could set up a webhook for the feed endpoint; that will get you updates for everything that happens on the feed - new posts, new comments, new reactions ... You’d have to filter out the reactions on your end, and then you could record them in your database with a timestamp that should be close enough. (That will only work for new reactions though, and not already existing ones.)
Yes , you can get details of comment by:
https://graph.facebook.com/{page-id}/{post-id}/reactions?access_token={page_token}

How to use Facebook Embedded Post to show the latest post using Graph API?

I want to show a Embedded Post in my website, but I want it to be always the latest post on my fanpage.
What I'm trying to do is:
Query the posts by making a GET request to https://graph.facebook.com/{FANPAGE}/posts?access_token={TOKEN}
Get the ID of the first object
Add the plugin to DOM on runtime using the ID
The problem is that I can't figure it out how to get a permanent access token (or equivalent) - since I can't update it every time it expires and I don't want the user to login just to be able to see the plugin.
Can this be done? How?
You can use a page access token, or your app access token (the latter will work only if the page is not restricted and posts are not targeted to specific audiences.)
Both of those must never be exposed in public client-side code; so you will need to do this on the server.

Accessing Facebook Likes and Interests with the old rest api

In their recent changes, Facebook now links your likes and interests with community and fan pages. How can I retrieve this information using the old rest API and Facebooker. I tried things like this to get the music preferences :
facebook_session.user.music
but I get a blank string instead of the relevant connections. Is it mandatory to use the new Graph API in order to make this work?
I believe this data can only be accessed via the Graph API.