{"id":152958,"date":"2020-09-08T07:42:57","date_gmt":"2020-09-07T23:42:57","guid":{"rendered":"http:\/\/4563.org\/?p=152958"},"modified":"2020-09-08T07:42:57","modified_gmt":"2020-09-07T23:42:57","slug":"%e8%af%b7%e6%95%99%e4%b8%8b%ef%bc%8c-facebook-%e7%9a%84%e5%b9%bf%e5%91%8a%e5%a6%82%e4%bd%95%e9%80%9a%e8%bf%87-api-%e5%8e%bb%e9%aa%8c%e8%af%81-idfa-%e6%9d%a5%e8%87%aa-facebook-%e7%9a%84%e5%b9%bf","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=152958","title":{"rendered":"\u8bf7\u6559\u4e0b\uff0c Facebook \u7684\u5e7f\u544a\u5982\u4f55\u901a\u8fc7 api \u53bb\u9a8c\u8bc1 idfa \u6765\u81ea Facebook \u7684\u5e7f\u544a\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u4e0b\uff0c Facebook \u7684\u5e7f\u544a\u5982\u4f55\u901a\u8fc7 api \u53bb\u9a8c\u8bc1 idfa \u6765\u81ea Facebook \u7684\u5e7f\u544a\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SchrodingerCat <\/span>  <span><i><\/i> 12<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u73b0\u5728\u5bf9\u63a5 Facebook \u7684\u5e7f\u544a\uff0c\u56e0\u4e3a Facebook \u7684\u5e7f\u544a\u5bf9\u63a5\u662f\u5ba2\u6237\u7aef\u4f7f\u7528\u7684 sdk\uff0c\u7136\u540e\u7528\u6237\u70b9\u51fb\u5e7f\u544a\u4e5f\u6ca1\u6709\u76d1\u6d4b\u94fe\u63a5\u4ec0\u4e48\u7684\u3002 \u67e5\u6587\u6863\u53d1\u73b0\u53ea\u6709\u4e0a\u62a5\u7684\u63a5\u53e3 https:\/\/developers.facebook.com\/docs\/marketing-api\/app-event-api#&#8212;-\uff0c \u6ca1\u6709\u83b7\u53d6\u9a8c\u8bc1 idfa \u7684\u63a5\u53e3\u3002\u8bf7\u6559\u5404\u4f4d\u6709\u5bf9\u5e94\u7684\u89e3\u51b3\u65b9\u6848\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3079499\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DJQTDJ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b89\u5353\u4e0d\u4f1a\uff0cios \u6211\u5230\u80fd\u5e2e\u4f60                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3079500\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SchrodingerCat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @DJQTDJ \u73b0\u5728\u63a5\u7684\u662f ios \u7684\uff0c\u8bf7\u6559\u4e0b\u4f60\u4eec\u662f\u5982\u4f55\u89e3\u51b3\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3079501\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SchrodingerCat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @DJQTDJ \u65b9\u4fbf\u7559\u4e2a\u5fae\u4fe1\u8bf7\u6559\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3079502\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DJQTDJ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @SchrodingerCat <\/p>\n<p>#import &lt;AdSupport\/ASIdentifierManager.h&gt;<br \/>NSString *userId = [[[ASIdentifierManager sharedManager]<br \/> advertisingIdentifier] UUIDString];<br \/>\/\/ Next: Store the user ID in your database<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>#import &lt;FBSDKCoreKit\/FBSDKCoreKit.h&gt;<br \/>#import &lt;FBSDKLoginKit\/FBSDKLoginKit.h&gt;<\/p>\n<p>&#8211; (void)viewDidLoad<br \/>{<br \/> \/\/ Enable profile updates for example in `viewDidLoad`<br \/> [FBSDKProfile enableUpdatesOnAccessTokenChange:YES];<br \/>} <\/p>\n<p>&#8211; (void)yourSelector<br \/>{<br \/> \/\/ Once user is logged in via Facebook Login you can call:<br \/> NSString *userId = [FBSDKProfile currentProfile].userID;<br \/> \/\/ Next: Store the user ID in your database <br \/>}                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3079503\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : SchrodingerCat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @DJQTDJ \u4e0d\u592a\u660e\u767d\u8fd9\u4e2a viewDidLoad \u548c yourSelector \u662f\u4ec0\u4e48\u65f6\u5019\u89e6\u53d1\u7684\u5462\uff1f\u5b89\u88c5 app \u4e4b\u540e\u5c31\u6267\u884c\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u4e0b\uff0c Facebook \u7684\u5e7f\u544a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152958"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152958"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152958\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152958"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}