Facebook Graph API Groups - android

I try get information about own groups over Graph API.
On me/groups I get list of groups. But I not understood what is params: bookmark_order.
Also we can see param unread:1. If I right, it present if another user set some change in group (post new comment). If I refresh group page in browser or open in native android app, then unread is no longer appears. After which api request I can remove unread flag?
Also at group's wall I can ask question. But {group_id}/feed not contain this posts. How I can get it?
I have group document. I can get data about this document: subject, message. But if in document I insert image, then in message param I has string about this image: (img:301666969868743). How can I get this image? Simple GET-request with 301666969868743 (I assumed that this long decimal is ID) return false.

bookmark_order (see https://developers.facebook.com/docs/reference/api/user/)
An array of objects containing the version(old-0 or new Group-1),
name, id, administrator (if user is the administrator of the Group)
and bookmark_order(at what place in the list of group bookmarks on the
homepage, the group shows up for the user).
unread
Doesn't appear to be documented. I would presume this would be a read-only value that facebook controls.
Log a documentation bug with facebook and ask them to explain it. (https://developers.facebook.com/bugs?search_view=search&search_ids%5B0%5D=208685622513742)
question not appearing in {group_id}/feed
Tested it and you're right, it doesn't appear. Good find. You should log this as a bug with facebook.
(https://developers.facebook.com/bugs)
Group document with image
When I did an image in a document, I too got the cryptic (img:###) inside the message of the returned object from {group_id}/docs. However I was able to find it on the graph using https://graph.facebook.com/####?access_token=#### and it returned the results. So I'm not sure how to help you with this one

Related

Firestore search across custom objects array

I try to make an app on Android for services reviews, every review is save like an element in the document "user" like this-
Everytime the user save a report I have see if inside the reports the field "plate" is existing comparing with the new one, I try query using the examples in the page arrays in Firebase
In the code i tried get with "whereEqualTo" method search by "reports.plate" or with the method "whereArrayContains" with the same field (the filter uid exits but in the first image doesn't show) any idea how i can search the document when some of the custom elements fields is equal
maybe sorry in advance for the english i'm practicing
Thanks in advance

How to edit Google spreadsheets in Kinetise's mobile application?

I develop app in kinetise tool and I found it is possible to easly add list with Google spreadsheet content. But I don't know whether it is possible to edit sheets from user account (when it is public or user sign up with Google). Let's say add records for specific position (A1) in specific sheet (SheetName). How to achieve this?
Yes, you can both view your spreadsheet (read) and edit it (write) in Kinetise.
Firstly, publish your sheet and get public URL address (File -> Publish to web).
Now in Kinetise editor add List widget and select "From Google Sheets" in Online source view. Paste your URL address and data from sheet should be displayed.
What about write, well you need to Sign-In with Google first. So please add Google login method to your application. You can do this attaching Google login widget to your Splash Screen.
Then in screen where you want to edit sheet please add Form widget. Select "To RESTful API" as form send destination. Paste below url:
https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}:append?insertDataOption=INSERT_ROWS&valueInputOption=USER_ENTERED&access_token=##GetGoogleUserAccessToken##
where
{spreadsheetId} - yours spreadsheet ID (same as in List widget's URL);
{range} - columns range: A1:B1 (depends on number of columns in your table).
The last thing you have to do is to edit send request body. Please click Settings button on the right of URL address. In Body tab and Request body transform section please paste:
{ "values": [
[ .form.field1, .form.field2 ]
]
}
field1 and field2 are names of form fields, so if you have another names or more columns please change it. And that's all, now you should be able to edit spreadsheet.

How to get the list of post of a Facebook Page with number of views?

I got a problem of getting the number of view of page posts.
"GET /v2.8/{page_id}/feed" could give me the list of page posts.
But I also want the number of views of each posts.
Trying "GET /v2.8/{page_id}/insights/post_impressions,post_consumptions_unique"
but the return is empty set.
Am I missing some param?
[from comments] But can I get the view count together with the post list, so I do not have to ask the view count for every post in the list?
Insights are available via the post object, too, so you can use field expansion to get the data in one request:
/{page-id}/feed?fields=message,insights.metric(post_impressions,post_consumptions_unique)

Cannot find Web1.PostText (and others) in app inventor 2

I'd like to construct an app which lets you search for players in various online databases and which will display the content in webviewer.
While its easy with some services (since the target-url basically is url/nickname), with some services i need the app to enter the nickname in the search field and search for it.
As I was searching for answers I found the following topic
XML-RPC HTTP request with App Inventor?
I'm not quite sure whether this is what I've been searching for, still I'd love to experiment with Web1.PostText and Web1.RequestHeaders, but I cannot find these blocks in App Inventor 2.
take a look at the App Inventor documentation of the web component
RequestHeaders
The request headers, as a list of two-element sublists. The first element of each sublist represents the request header field name. The second element of each sublist represents the request header field values, either a single value or a list containing multiple values.
PostText(text text)
Performs an HTTP POST request using the Url property and the specified text.
The characters of the text are encoded using UTF-8 encoding.
If the SaveResponse property is true, the response will be saved in a file and the GotFile event will be triggered. The responseFileName property can be used to specify the name of the file.
If the SaveResponse property is false, the GotText event will be triggered.

Why I am getting zero values for Facebook page status read?

I am facing problem in getting Facebook data
I am using Facebook SDK for page status read, for this I am using the following URL :
https://graph.facebook.com/gennextapps/statuses?limit=50&access_token=" + access_token
At first I am getting values, but, after two times I am unable to get the values.
Is there any difference between statuses and feed in URL?
The statuses and feed are two different things. "Statuses" are only the items posted by the page, while "feed" includes items posted by others.
I found this page documentation
Statuses: An array of Status message objects. The Page's status updates.
Feed: An Array of Post objects containing (up to) the last 25 posts. The page's wall.

Categories

Resources