How to set up real time updates in Facebook - facebook

To use facebook payments you need to have a realtime update callback set. Facebook references this and describes it here
https://developers.facebook.com/docs/graph-api/real-time-updates/
however there is nowhere in the app settings to set up that callback URL. There used to be a few months ago but now it's gone. What's the appropriate way to retrieve data about payments made?

The settings screen in the Facebook App details seems to be gone... But you can subscribe via the Graph API as described here:
https://developers.facebook.com/docs/payments/realtimeupdates/#subscribingviagraphapi

Related

App review is required to get Facebook Webhook working. How to develop?

I'm developing an app which must interact with Facebook API Graph and also use webhooks to get live updates. Now I'm facing a problem I can't receive a live webhook updates until my app is reviewed and is not in development mode.
I've found a thread on a Fecebook for developers site describing the same problem and it got official answer - it is not possible. Use Test button in app dashboard to test your webhook implementation they said.
The problem is the Test button sends only one predefined data packet for each of possible subscription with predefined set of fields with fake values, but documentation defines much more fields and little to none information about which fields are sent in different situations (i.e. post added, comment deleted, comment edited).
I'm wondering how other devs solving this? May be there are some community driven reference for a different webhook interaction cases or else.
For now I can't find any information on detailed webhook format except official documentation on available fields (but not supported payload shapes).
Our current workflow looks this way:
create test app
implement webhook handler using only documentation
prepare test payload and check it is working
create a screencast of the app functionality using test payloads
go through the review process
when app is approved
make it live and check your implementation against real webhook payloads
You need to create a test app for your existing Facebook app
Once you do this, just accept the permissions for your app and set the webhooks on your own Facebook account.
Since you are an admin of the test app, you will be able to set webhooks on yourself without having to get your app approved.

How to Use Firebase Dynamic Link in Facebook App Install Ad?

I'm trying to create app install ads on Facebook for an App. I would like to track installs via Dynamic Links so I can see the effectiveness of each ad/campaign for user retention & various conversion events down the funnel.
With Facebook Ads, the only option for tracking is to add a dynamic link to the ad. However, the Firebase link is not a dynamic link, but a web link, so it isn't accepted by Facebook Ads.
I'm curious if others have had this problem and if there is a solution.
I believe this may not currently be possible.
At Branch.io, we have a workaround for this by inputting a backup URI scheme link into the Facebook ad. But it appears the Firebase dynamic link does not have the required App Links tags set to support this method.
You may either need to rely on the Facebook console to track these, or use a different deep link provider.

How do we figure out to track facebook app installs to a specific marketing campaign and associated that with our own internal user ID?

This seems like a pretty basic need but I am unsure how to do it. Use case:
Company pays FB $$$ for mobile app install.
User clicks on facebook add to install your app
User starts the app. The code in the initialization function (appDidFinishLaunchingWithOptions on IOS) calls FBAppEvents activateApp]
Presumably somewhere in the
Facebook SDK the IDFA is sent to facebook.
Facebook correlates
the IDFA with the facebook app events to figure out what facebook
add was clicked. This data is then fed to facebook analytics so you
can see what campaign was used.
What I need is that after step 5 completes a way to figure what user ID's are associated with the specific facebook campaign. We would use this in our own internal tools to measure the campaign success. Preferably I would do this on the mobile end and send up the campaign source. Alternatively, we could do it server side. But I just don't see a way to get at the campaign data.
You could use Deferred Deep Linking with a parameter flagging the campaign install source. You'd miss out on view-through attribution (you could use Ads Manager to scale it up in aggregate), but it'd get you some user-level tracking.

Generating a notification on Facebook profile picture change

I am working on a Chrome extension that generates a notification whenever an entered Facebook profile changes his/her profile picture. I want to know if it is possible to do so using the Facebook API. I know we can get the current profile picture of the person using the API but how can we generate the notification? Please guide. Thank you.
That´s what the Realtime API is for: https://developers.facebook.com/docs/graph-api/real-time-updates/
I assume it would be the picture subscription of the User object.
What #luschn said is correct, you can use the Realtime Updates API. Would I want to add is that you can't receive the Realtime Updates client-side, which means that you need to set up some backend infrastructure before you can use them. Your Chrome extension "frontend" then need to be notified on a change by your backend...
See
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3#setup

Get Realtime Updates from a Facebook page

I am working on a web app that use Facebook login. The purpose of the app is to get information about fan pages that the user has in his account (for which he got admin privileges). I work mostly with the insights informations but this is not the issue. Now I would like to receive realtime update from the page like new messages, page posts reply etc. I've read the documentation https://developers.facebook.com/docs/reference/api/page/#realtime
and I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want? Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it? I am a little confuse and any guidance and advise is more than welcomed.
P.S. I am using PHP SDK, if this helps with something.
I've read the documentation
How about reading it again?
I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want?
Quote from the docs part you linked to yourself:
Note: You might think that because you're adding this via the tabs API that this is a tab app. It's not. This app isn't visible to users as a page app and isn't managed via any UI.
Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it?
You can subscribe to the page’s feed.