I'm creating new iOS app with Facebook API. I need to receive posts from user's "INTERESTS" lists.
But I can't access it. Graph API from path: "my/friendslist" doesn't actually return this list of "INTERESTS".
I'm sure I can access it, cause I can get info from this list by it's ID.
Graph API returns this:
{
"id": "MY_COOL_ID",
"name": "=3",
"list_type": "user_created"
}
But I can't figure out how. Any ideas?
Thanks.
Related
Looking for some help from an experienced Podio API navigator!
I'm trying to build a feature into our rails app where I can pull the details of a form from Podio, so that I can then automatically generate a form in our environemnt that can post to the app.
To do that I would need to get the category and labels of the fields..
However, when you GET a form from podio, this is all it gives you for the fields:
"fields": [
{
"field_id": foo,
"settings": null
},
{
"field_id": foo,
"settings": null
}
any thoughts on how I might use this information to get the information that I need? Can I somehow use the field_id to GET the field?
You can get the app and the fields within it by using GET request to,
/app/{app_id}/field/{field_or_external_id}
I am using Microsoft graph API. I made calls to get the lists of the sites and response resulted in listing all the lists available. Then used list id to fetch the items, but no items are displaying in the values field of response JSON. There are items in the list and can be seen in SharePoint. The API call made is to fetch the items -
https://graph.microsoft.com/v1.0/sites/abc.sharepoint.com,{SPSite.ID},{SPWeb.ID}/lists/{list-id}/items
and it returns-
{
"#odata.context": "https://graph.microsoft.com/beta/$metadata#sites('abc.sharepoint.com%2C792f04d7-8a76-4ccf-95fd-10e3293536c4%2Ca422fba2-947c-44ef-8134-ddd560d6bb3d')/lists('0c739bcd-8649-4fa6-bca4-a8dcea53e2c2')/items",
"value": []
}
To get the lists, which is working -
https://graph.microsoft.com/v1.0/sites/abc.sharepoint.com,{SPSite.ID},{SPWeb.ID}/lists/
and displays all the available lists.
I am referring this doc .
Using postman to make the calls.
Thanks
Try to use test query tool below to check if it works.
Graph-Explorer
It works using the API below in my test.
https://graph.microsoft.com/v1.0/sites/abc.sharepoint.com,{Site GUID},{Web GUID}/lists/{List GUID}/items
You can also check if the list id is right.
I am interested to have a invoice link/pdf from the api which returns the invoice using new freshbooks api endpoint https://api.freshbooks.com/accounting/account/<accountid>/invoices/<invoiceid>
Even including direct_links I am unable to get the link to the invoice. With direct_links it returns json with fields id, contactid, created_date, type, userid, objectid, token.
I currently work at FreshBooks.
Unfortunately these direct link tokens will only work with old FreshBooks, which isn't mentioned in the documentation -- I'll see if we can fix that.
Poking through, it doesn't look like we've has exposed a way to access a PDF version of the invoice through the public API just yet. But I'll pass that on to the appropriate channels and I'll update this answer if that changes.
I have a list of "n" Twitter ID representing users I would like to download.
To retrieve their user profile info, should I use n times the api call get_user or there exist a method to pass the entire list and retrieve all the info within one single api call, within the twitter rate time limit?
I tried something like
api.search_users(A)
api.search_users(id in A)
where A contains the list of id
but it does not work.
Anyone helping?
You can use the Twitter API resource https://dev.twitter.com/rest/reference/get/users/lookup. It can return user objects for at most 100 users at a time.
You can use this in Tweepy like:
user_objects = api.lookup_users(user_ids=list_of_at_most_100_user_ids)
Much of this answer first appeared as part of https://stackoverflow.com/a/42946854/1921546
I am trying to tag a photo using /{photo-id}/tags. These are the parameters I am sending:
{
tags = "[{'tag_uid': 'FRIENDS_ID', 'x':1, 'y':1}]";
}
This works fine if i use my App-Scoped ID, but it doesn't work with my regular ID.
This is the error that i am receiving ("(#100) The global X id is not allowed for this call"):
So, it does work with my App-Scoped ID, retrieved using /me, but it doesn't work with any other regular ID, neither mine or of my friends.
Do any of you have ideas of what's causing this?
As I already commented, you can only use App Scoped IDs in Apps, and those are only unique in your own App. You can only match them with another App you own, by using the Business Mapping API.
For tagging, you should use taggable_friends: https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends