PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, February 27, 2022

[FIXED] Creating ads for another user's page without validation

 February 27, 2022     facebook, facebook-graph-api, facebook-php-sdk     No comments   

Issue

I see Mailchimp has a feature to create facebook campaigns through its UI and I can't understand how they just need to have access to one of my pages to create ads for it.

As far as I understand you need to be a business manager administrator to claim a page as agency with the ADVERTISER role (cf. https://developers.facebook.com/docs/marketing-api/businessmanager/assets#pages) but

If the user who makes an AGENCY claim call does not have the proper permissions on the Page, the response will be PENDING. The Admin for that Page may login and grant the access, deny it, or even report the claim as a spam.

So how come Mailchimp doesn't require this validation?


Solution

So there is another way which doesn't involve business manager directly: adding a system user as advertiser.

Assigning permissions to a page from the API requires special permissions. Please reach out to your Facebook rep if you require this feature.

My team is still in the process to “reach a facebook rep” (it's been two weeks already…) but once this will be done a simple POST to <PAGE_ID>/roles with

  • admin_id: system user ID
  • role: Advertiser

should allow to create ads for pages using the system user access token.


Turns out facebook desn't want you to use the features they advertise, so there's in fact no solution.



Answered By - MatTheCat
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing