Google People API - Field which shows how it was last updated - in Google itself, or via API - google-people-api

I have created a system where my clients' Google Contacts are synched with Podio CRM. When a contact is updated in Google, the contact is updated in Podio (and the flow stops at that point). When a contact is updated in Podio, the contact is updated in Google (via the people API), which triggers an update in Podio (not wanted!) - I would like to filter this action based on what was the last 'thing' to update the Google record (ie. if it was the API then the flow stops)

Related

Id of photos in Google photos API

I am using the Google photos API
We use this to add and reference photos to google photos.
Save the ID that is issued when adding a photo, link it with other information by using it, and reference the photo again.
After photos were added, it was possible in the above method during August, but in September the ID was changed, and I could not refer to it properly.
It means that the ID when added and the ID when referring have been changed.
Does this mean that the ID is automatically updated every certain period?
By the way, the photos in google photos have not been deleted.
The IDs changed as part of the 5 September 2018 release of the Google Photos Library API.
This was a once-off change during the developer preview. Now that the API has entered general availability, you should not expect breaking changes like this.
There's some more background in this question: Google Photos Library API IDs are invalid

Facebook Graph API does not return Page Events

This looks a kind of duplicate question but actually NOT.
So the problem is https://www.facebook.com/julytalk/ has events, for sure.
But when I tried on Facebook Group API toolkit, it returns empty array.
https://developers.facebook.com/tools/explorer/145634995501895?method=GET&path=204859706228731%2Fevents&version=v2.12
Why is this happening?
I could not find any Facebook API endpoint modification notice, at all.
It was working okay before.
Please help me.
https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes
Access to the Events API is not possible at the moment:
...apps currently accessing Events and Groups APIs will lose access today
Update: After Facebook did a lot of changes, it seems to be possible to get events again. You can get events from Pages you manage easily in dev mode. If you want to get public events, you may want to read the answer in this thread: Facebook pages API: "Page Public Content Access" review screencast
The above answer was misleading for me, not because its wrong but because so many things have changed on Facebook's side and I needed further clarification.
This is the current state based on my research (25.08.2020.).
There are several types of events available based on where the event destination is:
User events
Documentation terminology: "Events on User"
API endpoint:
me/events
Page Events
Documentation terminology: "Events on Groups"
API endpoints:
me/groups
group_id/events
Group Events
Documentation terminology: "Events on Pages"
API endpoint:
me/accounts
page_id/events
App Events
Documentation terminology: "Events on an App"
API endpoint:
{application-id}/events
About app events.
The list is taken mostly from Facebooks API event endpoint.
The documentation is wrong on event limitations:
Access to Events on Users and Pages is only available to Facebook
Marketing Partners.
The current state is that "Access to Events on Users and Pages is available to":
A) App Admins (verified with testing)
B) App Developers (verified with testing)
C) App Testers (not verified)
D) Facebook Marketing Partners (not verified)
What does this mean?
This means if your query the "me/accounts" endpoint which will give you a list of page ids.
When you select a page id and then query "your_selected_page_id/events" you will receive:
An empty list if you are not A-D)
A list of events which is not the same as your users.
A lot of confusion and frustration because there is no error message thrown.
I have tested this with different API versions 4.0 - 8.0 and the results were the same.
I have also tested this with a different but similar set of permissions, resulting in the same empty array response.
SOLUTION(S):
TODO: UPDATE: Clarify who needs to become FMP.
To query for page events "someone" needs to be a Facebook Marketing Partner.
https://developers.facebook.com/support/bugs/352704275741601/
Invite your users to become testers.
Helpful links:
Read more on Facebook Marketing Partners.
Officially on Facebook Marketing Partners.
Facebook Graph Explorer.
Facebook Batch Requests.
Additional notes:
Page event fetching has the same requirements as user events fetching.
Group event fetching works for all users (ignores A-D).
Creating batch requests with no FMP will result in response sections that only have empty arrays.

Where is the facebook page feed subscription field in webhooks ( Facebook graph API)

Few months ago I created a facebook app where I added "feed" subscription field in Webhooks section. See the screenshot of the previous app.
Today I created a new facebook app where I can't find the "feed" subscription field in Webhooks section. Where has it gone? Facebook removed it or something else? See the new app's screenshot
I believe all the other entries are currently on lockdown due to this
https://developers.facebook.com/status/issues/205942813488872/
I think you see "messages" because you've configured the messaging product, otherwise chances are that you wouldn't even see the 'Page' topic in the topics list.

get facebook graph api response with google cloud functions

I am currently developing an Android app that outputs the posts of a Facebook page.
Of course I want to notify the app users about new posts. Then I connected my app to Firebase Notification. When I enter and send a message there, a push message is displayed on the mobile phone. Of course I don't want to create the push message manually in Firebase every time there is a new post. So I thought I could create a function in Firebase cloud functions that gets the posts from Facebook Graph API, writes to the database and compares (Primary Key Facebook id) if there are new posts. I have searched Google for several hours, if there is a comparable topic already, but I havn't found anything. I have also worked through the documentation of Firebase cloud functions, but havn't found a starting point. Does anyone have an idea how to do that?

How to insert timeline card in new user account for first time

I've followed the Glass quick start guide for Glass for Python.
I'm able to run the server locally and can insert timeline cards to my account using the Admin Panel in Quick Starter. So far so good. But how the flow would look like for a new user? I'm creating a glassware similar to weather updates. In Quick starter, I had to trigger the "post" thru a "form" element. How does it work when someone installs Glassware from store. What triggers that person to get "very first" timeline card. I'm quite confused here. Any useful information will be helpful.
When a user turns on your Glassware in MyGlass, they will be redirected to your auth URL and taken through an OAuth flow (just as would happen if you visit that URL manually without going through MyGlass when you're developing). After they go through that authorization, you can perform any post-auth tasks that you need, such as inserting contacts or timeline items.
The relevant code in the Python Quick Start can be found in the _perform_post_auth_tasks method of the OAuth request handler, which is called at the end of the get request before redirecting to the Glassware's main page.