Anyone know a way to see who was tagged in a User's Videos on Tiktok? - tiktok-api

Relevant link: https://developers.tiktok.com/
I'm currently querying for my own videos using my access token and getting all fields listed as available when hitting the query video endpoint.
I don't see any reference to "tagged" users. I can see who I mentioned by looking at the title text but nothing about tagging.
Anyone know if I am missing something, if it's available from somewhere else or maybe not available at all?
Thanks!

Related

graph api returns empty data array when requested post_id/reactions

I am trying to get all the reactions of a facebook post with post_id/reactions in Graph API. But the returned data array is always empty. I have generated the access token with all the user data permissions. I am attaching a screenshot of the scenario.
Does this problem has something to do with some more permission?
EDIT:
I also found out that this post_id/reactions is only showing the data of my reactions of a post. So, if I react on a post and do a graph api query for that post, it will show my information only. Does anybody know the reason/solution for this? Attaching the scenario.
EDIT 2:
I followed a youtube tutorial to do it like this. But apparently, it cannot be done (at least with this way!). It is mentioned in the documentation (screenshot attached).
If anybody can still provide me any other way to do this, please mention.
You can view the reaction of the user if you have his access token. This with:
{post-id}/?fields=reactions.type(LIKE).limit(0).summary(1)
The returned field "viewer_reaction" is the reaction of the user in the post.

Facebook: posting a fitness.bikes OpenGraph action

I'm trying to submit a fitness.bikes story from a Windows Phone app. Ideally I'd like it to look the same way it does in the documentation -- a table of stats, and a course map. I'm trying to figure out how to make that happen. Specifically, whether it's possible to make it happen without a 3rd party server hosting the ride data.
Questions:
When I am submitting a course object to Facebook, can I specify all needed ActivityDataPoints to make the map show up, or is something else needed?
In the sample post I've been trying, all I get is the Title, the Image, and the Description. Can I get the table of stats to show up, without needing an external server?
The posts I'm sending are not appearing on the Timeline, even for a test user. They do appear in the Activity Log, and are marked with "Allowed on Timeline", not "Showing on Timeline." I'm using fb:explicitly_shared... shouldn't the post show up?
Ok, after further experimentation, I believe I can answer my own questions:
The fitness.bike activity post data should contain only fb:explicitly_shared, privacy, and course links, and nothing else. For some reason adding created_time makes the post appear in standard layout.
Same answer as above. Table of stats is part of the Map layout Facebook provides.
Same answer as above. Removing the created_time attribute magically makes the post appear correctly on the timeline.
P.S. As far as an external server -- it is necessary only if you want to redirect the user to your own page. Even then, the server can grab the object_id from the URL, grab an access token from Facebook using AppID and AppSecret, then lookup that object (course), extract data out of it, and show on the page.
Hope this helps someone else.

How can the insights edge be used on the /<page_id>/posts URL with the Facebook Graph API

So I am trying to retrieve some insights information and noticed there was a connection within the posts field of a page. When I use this connection, it retrieves all of the insights information, all metrics. I only want to limit myself to a few that I need, instead of getting the overhead of searching it out myself after I pick it up.
This is the URL I have tried to limit myself to only the post_consumptions metric
https://graph.facebook.com/v2.0/<page_id>/posts?fields=insights{post_consumptions}
This doesn't work, it still returns every metric, so I thought maybe I can't choose the metric, but only the fields. Then I tried this:
https://graph.facebook.com/v2.0/<page_id>/posts?fields=insights{id, name}
But there were no changes in results, I can't seem to find any documentation about this connection either in the documentation of Facebook Graph API, which doesn't really surprise me as Facebook does this quite a lot.
The documentation about it, which I could find, are here:
https://developers.facebook.com/docs/graph-api/reference/v2.0/insights
https://developers.facebook.com/docs/graph-api/reference/v2.0/post#edges
I dont know if you still have this problem but i solved it like this
https://graph.facebook.com/v2.2/<page_id>/posts?fields=insights.metric(post_impressions_unique)

Publishing Location-aware Post via Graph API

It is my understanding that the Post object is now Location-aware.
However, I can't seem to find documentation on how to publish location-aware Posts via the Graph API.
My app is currently publishing Checkins that reference a Place - but I would like to migrate to location-aware Posts since Places are being deprecated.
I understand that Checkins are sticking around, and that they will now reference a Page instead of a Place, but, unless I'm mistaken, the Page ID reference is still mandatory, and I am in need of my location-aware post/checkin having an optional Page reference.. hence my desire to move to Posts that have location capabilities.
Please let me know if I am incorrect in any of my assumptions..
I tried finding these questions, but none of them seem to hit exactly on the things I needed to know.
Thanks so much!
So you can now add location to posts and photos:
http://developers.facebook.com/blog/post/2012/03/07/building-better-stories-with-location-and-friends/
However I think this location is still added by giving a place ID or page ID (I'm not sure which, actually.) But I think you're asking if you can add location without a place/page ID? Personally I would like to do this as well, e.g. use lat/lon coords.
When you post through facebook proper, it can automatically add your general location (e.g. "near [nearest city/municipality]") however I don't see a way to achieve the same thing through the FB API.
You can't currently attach a location to a post via the graph api. Keep an eye on the Facebook developer blog to see if that changes.

Facebook and suggestions

I'm trying to write a simple application that finds out who liked your page. I used FQL and a query very similar to:
$query = 'SELECT user_id FROM like WHERE object_id="149187568469862"';
The first issue is that FB returns an empty array. Maybe the data will be available in the near future.
I will describe the most important issue. If the user X liked my page, I would like to know who suggested X to like my page. Maybe nobody, but there are chances that X pressed "Like" after a suggestion coming from a friend. I browsed the documentation, but I didn't find relevant information about how can I see who liked my page as a result of a suggestion. Do you have any ideas?
Thanks,
As far as I know you can not retrieve any historical information on who referred a "like". Furthermore, as of right now facebook does not seem to allow querying for all your pages "fans" (which is basically everyone who likes your page). They do, however allow looking up all pages that a user "likes" using fql. Much of their documentation is very "skinny" on examples. I actually learned the most by downloading the facebook connect javascript toolkit which came with some client side examples of the most used functionality. https://github.com/facebook/connect-js - this may be a good place to start