Find Jobs
Hire Freelancers

Bygg en hemsida

$250-750 USD

Cancelled
Posted about 7 years ago

$250-750 USD

Paid on delivery
I have this problem: I'm trying to build a service that let's users create facebook ads with a custom audience based on our database of emails. Before creating the facebook ad I want to create a preview of the ad. This works just fine when I login in with my own account (admin of facebook app) but fails when logging in as test user. This is what the user will do: 1. Visit the website of the service. 2. Login using Facebook account with scope: public_profile,email,manage_pages,publish_pages,business_management,ads_management 3. Select facebook page to use 4. Create AdCreative. From this an ad preview can be made. But it fails creating an Adcreative and gives me the following error: "error":{"message":"Application does not have permission for this action","type":"OAuthException","code":10,"error_subcode":1341012,"is_transient":false,"error_user_title":"No permission to access this profile","error_user_msg":"You don't have required permission to access this profile","fbtrace_id":"EgTeMOXPCUp"}} The access token as well as ad account belongs to the facebook app. I tried to use the page access token as well but then I don't have permission to access the ad account. This is code: function fbadcreative($url, $message, $carasoul, $fbtoken, $pageid){ $calength = count($carasoul); $children = array(); for($i = 0; $i < $calength; $i++){ $caitem = $carasoul[$i]; $caitem['hash'] = fbaddimage($caitem['picture'], $caitem['id']); $child = (new AdCreativeLinkDataChildAttachment())->setData(array( AdCreativeLinkDataChildAttachmentFields::LINK => $caitem['link'], AdCreativeLinkDataChildAttachmentFields::NAME => $caitem['name'], AdCreativeLinkDataChildAttachmentFields::DESCRIPTION => $caitem['description'], AdCreativeLinkDataChildAttachmentFields::IMAGE_HASH => $caitem['hash'], )); $children[] = $child; } $link_data = new AdCreativeLinkData(); $link_data->setData(array( AdCreativeLinkDataFields::LINK => $url, AdCreativeLinkDataFields::CAPTION => $url, AdCreativeLinkDataFields::MESSAGE => $message, AdCreativeLinkDataFields::MULTI_SHARE_END_CARD => false, AdCreativeLinkDataFields::MULTI_SHARE_OPTIMIZED => false, AdCreativeLinkDataFields::CHILD_ATTACHMENTS => $children, )); $object_story_spec = new AdCreativeObjectStorySpec(); $object_story_spec->setData(array( AdCreativeObjectStorySpecFields::PAGE_ID => $pageid, AdCreativeObjectStorySpecFields::LINK_DATA => $link_data, )); $creative = new AdCreative(null, 'act_<accountid>'); $creative->setData(array( AdCreativeFields::NAME => $url, AdCreativeFields::OBJECT_STORY_SPEC => $object_story_spec, )); try { $creative->create(); return $creative->id; //return $creative->read(array(AdCreativeFields::ID,)); } catch (FacebookAds\Http\Exception\AuthorizationException $e) { echo 'Message: ' . var_dump($e); $previousException = $e->getPrevious(); // Do some further processing on $previousException exit; } I need it solved quickly.
Project ID: 13637994

About the project

18 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
18 freelancers are bidding on average $545 USD for this job
User Avatar
Hello, my name is Michael. I represent Ukrainian based IT-company Webbook Inc that provides services in the IT-sphere for international business. We were carefully reviewing the requirements of the job description, so our devs can work on Your project without delay. We have years of working on projects related on any available CMS, from "scratch" with core php and php-frameworks(Yii/Yii2, Laravel, CodeIgniter), JavaScript, jQuery, AJAX, HTML5, CSS3, Bootstrap, javascript-frameworks, 3d desidg, graphic design etc. However, I shall discuss about the requirements and functionalities in details to have a better understanding about time frame and price. We are glad to chat with You and discuss all in details. Contact us and we will reply immediately. Waiting for Your reply! Best regards, Webbook team
$480 USD in 9 days
4.9 (118 reviews)
8.0
8.0
User Avatar
Hi I have gone through the details of your project and we find it well within our capabilities. I offer a wide range of services, including Web design, PHP/MySQL web application development, Open sources like Joomla, Os-commerce,vBulletin , Zen cart-Drupal , android and IOS , I can create and deliver the project as per the information.I have skilled, expert programmers I'm very excited to assist you in making your Sites successful – please feel free to contact me directly to discuss this position further. Thanks
$567 USD in 15 days
4.7 (444 reviews)
8.2
8.2
User Avatar
I have gone through your complete requirement and want to discuss the project further with you. Please Let me know the best suitable time for you to schedule the meeting, Feel free to message me at any time, I use to be online 24x7 on Freelancer so probably you will get a quick response from my end. Thanks!
$515 USD in 10 days
5.0 (27 reviews)
7.1
7.1
User Avatar
Hello, It's a pleasure to let you know that I've Completed and Delivered similar project before. All I need to work on customization part if we can proceed towards more discussion. I have gone through your project description and confident to accomplish your project. I am an individual developer and you will be working directly with me if we proceed work on this project. My key skills are – 1) Ruby 2) Ruby On Rail 3) Angular JS 4) Node JS 5) PHP with Codeigniter and Laravel Framework. 6) App development Let's initiate our chat so we can proceed towards the conclusion of this project scope and give it a start as soon as possible. Thanks & Regards
$555 USD in 10 days
4.8 (10 reviews)
5.7
5.7
User Avatar
Hello! my name is Viktor. We are IT Company «Webin». We provide website design and web and app development services for organizations, public and government institutions, company or private web-pages. We got acquainted with Your description of the task, our devs can start the work on Your website as soon as You need. We have gained years of experience and expertise working in CMS(Wordpress, Drupal, OpenCart, MoDx), Mockup Designs, Template Customizations, PHP, php-frameworks(Yii/Yii2,laravel), Software Architecture, JavaScript, jQuery, HTML5, CSS3 and Responsive. Our team specialized on developing from the simplest website to the most complex web-based internet applications, electronic businesses, corporate portals and social network services. Now, we are ready to start working on your project. However, we are looking forward to hear from you the detailed descriptions of the task. We are glad to chat with You and discuss all in details. Contact us and we will reply immediately. Waiting for Your reply! With regards, Webin team
$459 USD in 11 days
4.8 (10 reviews)
5.3
5.3

About the client

Flag of CHINA
Shanghai, China
5.0
8
Payment method verified
Member since Jun 28, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.