Android Facebook应用程序事件-跟踪导致应用程序安装对话的Facebook添加点击-没有Facebook SDK?

Android Facebook应用程序事件-跟踪导致应用程序安装对话的Facebook添加点击-没有Facebook SDK?,android,facebook,Android,Facebook,有没有一种方法可以在不集成Facebook SDK的情况下,通过后端集成使用Facebook应用程序事件 我们有一个SaaS解决方案,所有客户端设备共享一个通用API。我希望扩展我们的API以包括新的指标(FB添加点击导致我们的应用程序安装),然后在后端与FB集成。这样的事情可能吗?我不清楚Facebook SDK是如何工作的,从文档中我可以看出,这个想法是更新应用程序以调用FB SDK,但仅此而已。在客户端上与FB SDK集成是我唯一的选择吗 只是想知道其他人对此有什么经验,你可以使用这个A

有没有一种方法可以在不集成Facebook SDK的情况下,通过后端集成使用Facebook应用程序事件

我们有一个SaaS解决方案,所有客户端设备共享一个通用API。我希望扩展我们的API以包括新的指标(FB添加点击导致我们的应用程序安装),然后在后端与FB集成。这样的事情可能吗?我不清楚Facebook SDK是如何工作的,从文档中我可以看出,这个想法是更新应用程序以调用FB SDK,但仅此而已。在客户端上与FB SDK集成是我唯一的选择吗

只是想知道其他人对此有什么经验,你可以使用这个API


https://graph.facebook.com/

回答我自己的问题,如果这对任何人都有帮助:
@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.