2017-04-20 2 views
2

Facebook SDKを統合せずにバックエンド統合でFacebook App Eventsを使用する方法はありますか?Facebook App Events - facebookを追跡すると、アプリのインストールの会話につながるクリックが追加されます - Facebook SDKなし?

https://developers.facebook.com/docs/app-events/android

私たちは、クライアントデバイスの全てに共通のAPIとSaaSソリューションを持っています。私はAPIを拡張して新しいメトリックを追加することを望んでいました(私たちのアプリインストールの結果となるFB追加クリック)、そして私たちのバックエンドでFBと統合することを望んでいました。このようなことは可能でしょうか?私はFacebook SDKの仕組みについてはっきりしていませんが、FB SDKを呼び出すためにアプリケーションを更新するというアイデアはドキュメントからわかるはずですが、それはそれに関するものです。クライアント上のFB SDKとの統合は私の唯一の選択肢ですか?

この

+0

を見ます誰でも助ける:https://developers.facebook.com/docs/marketing-api/app-event-api/v2.9 – Hoofamon

答えて

1
@Hoofmon As you have also mentioned 

API Call Example 


curl \ 
    -F "event=CUSTOM_APP_EVENTS" \ 
    -F "advertiser_id=1111-1111-1111-1111" \ 
    -F "advertiser_tracking_enabled=1" \ 
    -F "application_tracking_enabled=1" \ 
    -F "custom_events=[{\"_eventName\":\"fb_mobile_purchase\",                                                                            
         \"_valueToSum\":55.22,                                                                                                                                                              
         \"_logTime\":1367017882,                                                                               
         \"fb_currency\":\"GBP\",                                                                               
        }]" \ 
    "https://graph.facebook.com/API_VERSION/APP_ID/activities" 

The response is be true. If you receive an error, retry the request. 


Android Client 

Place the Facebook attribution ID in Android in a ContentProvider that can be accessed by other apps on the phone. The code snippet below is an example of how to retrieve this ID. 


public static final Uri ATTRIBUTION_ID_CONTENT_URI = Uri.parse("content://com.facebook.katana.provider.AttributionIdProvider"); 

public static final String ATTRIBUTION_ID_COLUMN_NAME = "aid"; 

public static String getAttributionId(ContentResolver contentResolver) { 
     String [] projection = {ATTRIBUTION_ID_COLUMN_NAME}; 
     Cursor c = contentResolver.query(ATTRIBUTION_ID_CONTENT_URI, projection, null, null, null); 
     if (c == null || !c.moveToFirst()) { 
      return null; 
     } 
     String attributionId = c.getString(c.getColumnIndex(ATTRIBUTION_ID_COLUMN_NAME)); 
     c.close(); 
     return attributionId; 
    } 


You should also fetch Android’s advertising ID, see instruction Android, Play Service ID. 

Cookie Format 

The cookie is a 22-character random alphanumeric string. It is not derived from any user or device attributes. Also this mobile cookie is not persistent and is designed to be refreshed frequently, so you cannot use this for re-targeting or so. 
0

であなたが

https://graph.facebook.com/<API_VERSION>/<APP_ID>/activities

このAPIを使用することができなければならないものを経験他人を知って興味があるだけでは、この包み、自分の質問に答えるためにドキュメントhere

関連する問題