How do you use the Facebook Marketing API sandbox to retrieve simulated insights? - facebook-graph-api

I’m working on an application that is going to leverage the Facebook (Meta) Marketing API to retrieve ad campaign insights. I don’t have any real life data to work with so I was hoping to use ‘simulated insights’ aka mock data which was referred to as a future feature in a 2017 article about the Marketing API sandbox mode. Has anybody been able to get simulated insights working? I’ve setup a sandbox account and don’t receive any insights which I somewhat expected without any special arguments or specific endpoint to call. Any help is greatly appreciated

Related

How to access data of my own non-business Instagram account?

I'm looking for the right approach to solve the following problem:
For my own non-business Instagram account I like to read which accounts follow me and which accounts like and comment my posts.
I read about the old and the new API, about API deprecation etc. Now I'm unsure which approach shall I choose?
Instagram Platform API
Graph API
other approach like browser automation (e.g. InstaPy)
Instagram/Facebook says "If you are building apps for Instagram Non-Business Accounts, please use the Instagram Platform API". But the process to get an account seams to be complicated. And as I understand until 2020 Instagram will deprecate this API completely.
Additionally as I understand the sandbox mode doesn't help me, since it is restricted and won't show the real results.
From what I can tell, you should use the Instagram Platform API. I think you're right that the Graph API is only for servicing Business Accounts.
I'm in the same boat. I made an app that lets users sign in with their own non-business accounts. Setup OAuth flow using the old API, which works in sandbox.
However, I submitted for approval this week and haven't heard anything. There's no way to contact Instagram or know how long it will take to get approved.
I personally have some experience with InstaPy and I can tell you that it is used mainly for directly interacting with said accounts. You can follow, comment, like, etc... on these accounts that follow you but actually accessing a list of all of them would be more tricky. That's why I wouldn't recommend browser automation for the goal you have set out for.

How to use Facebook GraphQL

How to intercept and send HTTP requests for GraphQL?
I saw some people are able to find security bugs via GraphQL on Facebook. How do they do it?
Are there any tools available to test these calls?
Facebook GraphQL is an internal API so I'm not sure anyone here will be able to give you a detailed answer on using it. For testing GraphQL, you will want to check to see if a public schema is available.
Starting at https://graphql.org/ or going into the spec itself http://facebook.github.io/graphql/ might be of interest to you.
If the schema is not available then you're going to have to understand how the app works, follow the requests and make assumptions (like in the case with Facebook)

How to access community id in facebook workplace?

I am trying to access workplace data using Facebook Workplace API. I am the System Administrator for the workplace. Still I dont get the CommunityId in the Custom Integrations page.
Has anyone come across this same situation? Any suggestions would be great !!
You can find your Community ID by making a Graph API GET call to graph.facebook.com/community with a custom integration access token (https://developers.facebook.com/docs/workplace/integrations/custom-integrations/reference/community)

Is there a service that allows to access multiple API's using unified interface and one login?

Some time ago I was browsing the web, when I found a service that allowed to access multiple API's using single, unified interface and single login.
I remember that I browsed the catalog of API's and check OCR services to see what features they offer.
I don't remember if it was a free service or paid one. I didn't bookmark it and now I can't find it. I have found only API's catalog on Programmable Web.
Is anyone knows the name of this service?
Well, after getting one vote down I decided to google more. No results. I reviewed bookmarks and... bingo!
It's called mashape.com and what I have had in mind was this catalogue.
Disclaimer: I have no connection to this service. I just liked the idea.
Edit:
I have just found API search:
{API}Search.
It does not allow to access mutiple API's using single credentials, but might be usefull for API's discovery.

Authenticate user through Azure AD from AWS Lambda

I'm very sorry to ask such a broad question, but I haven't found any direct answer when I and colleagues have searched the internet.
We have AWS Lambdas that needs to authenticate and authorize from an Azure AD.
How do we accomplish this?
I understand that the question is very broad and hard to answer, but if someone knows of a good guide or some step by step instructions that can help me get going I would appreciate it greatly.
Forget the "AWS Lambda" part. Consider it as external app that needs to get token from Azure AD in order to have it's requests authorized. You can achieve this using Azure AD REST API.
https://learn.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code
Microsoft offer the Active Directory Authentication Library. Information on ADAL can be found here:
https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-libraries
In terms of identity and access management, you have a few options but I would recommend the use of Azure Service Principals. More information can be found:
https://learn.microsoft.com/en-us/azure/active-directory/develop/app-objects-and-service-principals
If you're not familiar with Azure AD, or OAuth, and are inquisitive enough, you should really start at the beginning:
https://learn.microsoft.com/en-us/azure/active-directory/develop/
The docs are written plainly and very well, in my opinion.