您可以查看此参考:http: //developers.facebook.com/docs/reference/ads-api/generatepreview/
--- 首先,您需要通过以下方式获取帐户 CSS
$url = 'https://graph.facebook.com/act_' . $bizId . '/adpreviewscss?access_token=' . $access_token;
--- 然后通过
$url = 'https://graph.facebook.com/' . $adId . '/previews?access_token=' . $accessToken;
--- 添加这个 CSS 补丁
/* ---- Ads Preview Styles ----------------------- */
a.forceLTR{cursor:pointer;color:#3B5998;text-decoration:none}
.fbEmuPreview{border:1px solid #E5E5E5;background-color:#FFF;width:234px;padding:10px}
.fbEmuEgo{line-height:13px}
.fbEmu .title{font-weight:700;margin-bottom:0!important}
.fbEmu .forceLTR{direction:ltr;text-align:left;display:block}
.fbEmu .adInfo a.identity{color:gray;display:block;white-space:nowrap}
.fbEmu .image_body_block{padding-top:3px}
.clearfix{zoom:1}
.clearfix::after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}
.fbEmuEgo .image{width:100px;display:block}
.lfloat{float:left}
.-cx-PRIVATE-uiImageBlock__mediumImage{margin-right:8px}
.-cx-PRIVATE-uiImageBlock__content{overflow:hidden}
.-cx-private-uiimageblock__content a{font-size:11px}
.fbEmu .body .fbEmuLink{color:#333}
div.fbEmuEgo .image .img{padding-top:3px;max-height:72px;max-width:100px}
.fbEmuEgo .action{color:#777;margin-top:5px}
.uiIconText{padding-left:21px;position:relative}
.uiIconText .img{left:0;position:absolute;top:-1px;vertical-align:middle}
.sx_39ed22{width:12px;height:11px;background-position:-49px -154px}
.sp_buw69i{background-image:url(http://static.ak.fbcdn.net/rsrc.php/v2/yR/r/hqPYFjMiGCV.png);background-repeat:no-repeat;display:inline-block;height:16px;width:16px}
a.forceLTR,a.uiIconText{cursor:pointer;color:#3B5998;text-decoration:none}