1
如何使用PHP在我的廣告帳戶下廣告預覽所有廣告。廣告預覽Facebook帳戶中的所有廣告ID
的FB廣告預覽插件已被棄用(下面的代碼)
https://developers.facebook.com/docs/marketing-api/ad-preview-plugin/v2.7.
可有人請幫助我的代碼創建一個類似的應用程序。
<script>
window.fbAsyncInit = function() {
FB.init({
appId: 'XXXX',
xfbml: true,
version: 'v2.7'
});
};
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div id="fb-root"></div>
<script>
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id))
return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_US/sdk/xfbml.adpreview.js#xfbml=1&version=v2.7";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
<div class="fb-ad-preview-deprecated" data-creative="{object_story_id: "19292868552_10151567679603553"}" data-ad-account-id="XXXX" data-ad-format="MOBILE_FEED_STANDARD"></div>
</html>