As the title suggests, is there any way to obtain the mobile device name (like Samsung Galaxy S10) of the client user? The best I have across is - Django-user_agents but it doesn't fetch that information
Related
Question about application_id for promoted_object of Facebook Marketing API.
I'm trying to create Ads for mobile applications published to Apple App Store or Google Play Market. These are applications of my clients, they are not mine and I don't have access to them.
I have successfully created AdCampaign object with objective=MOBILE_APP_INSTALLS.
But I can't create AdSet object for this campaign.
AdSet requires promoted_object with application_id and object_store_url fields provided. While I can provide object_store_url (it's just a link to application app store page) but I can't provide application_id for this app because this application is not mine.
At the same time business.facebook.com web interface does not require application_id. It requires application_url only. Screenshots: http://take.ms/jFQyY http://take.ms/CCBGM http://take.ms/pmNap
How can I retrieve application_id using application appstore url?
Or maybe it is possible not to specify application_id field for promoted_object of AdCampaign with objective=MOBILE_APP_INSTALLS at all?
According to the Marketing API documentation for "Creating Ad Sets with Promoted Object", it says "You cannot specify an object_store_url on its own without an application_id, this is something only available via our native interfaces.".
To retrieve the application_id, you may try the Connection Objects API to get the list of connected Applications to your Ad User account. Your clients need to grant you the advertiser role to their Facebook Application first before you can start listing the applications via Connection Objects API.
Connection Objects API is able to return the object_store_urls, which means you don't need to provide the app store URL manually.
I am trying to retrieve my app campaigns and their associated apps with their events via my advertiser account.
The problem is that I am unable to find a unique identifier for my app in the API response.
For example the query below will get me the 'action_target_id'. This would either equal my AppId or another numeric string which I don't know what is. I am confused, does it mean I have two AppIds?
act_<AD_ACCOUNT_ID>/reportstats?time_interval={"day_start":{"day":"01","month":"03","year":"2014"},"day_stop":{"day":"07","month":"04","year":"2015"}}&data_columns=['adgroup_id', 'actions','action_target_id','action_target_name','campaign_name']&actions_group_by=['action_device','action_type']&format=json&async=true
What are 'action_target_id' and 'action_target_name' meant to represent (in the context of running a campaign for a mobile app)? I cannot seem to find a clear explanation for this in the API doc.
The applications/developer edge will return applications your account has access to.
As for your second question, the action_target_id and action_target_name are not always your application. It depends on what the action specs of each campaign is, if even set. An 'action spec' is a FB format for defining relationships between an ad and various objects for various purposes. More about that at https://developers.facebook.com/docs/marketing-api/intro-action-specs
In your case, the action spec in the context of a mobile app ad campaign will probably be the FB application. See also default conversion spec and default tracking spec.
There was a music event a friend of mine went to and they had a few photographers waling around out there. The photographers took photos that were instantly uploaded to the users facebook account via an NFC wristband. The workflow when it was explained to me looks like this:
Step-1 Get a nfc wristband at the Kiosk- Facebook will be encoded into the wristband.
Step-2 Walk around the event. If a photographer takes your picture, hold your wrist to the camera and the image will be watermarked with event/sponsor logos at the bottom and posted to your facebook account .
So, I was thinking how this could possibly be done- I googled and googled, but I got nothing. Here's my guess- All the FB authentication can be in the wristband. An EyeFi SD card has the ability to take a photo and transmit it. NFC Arduino reader could read the persons wristband, authenticate, then go into the images and pull the last photo that was taken and post it to the users fb page. What do you think?
We have a (beta) product that performs this exact function. It's called Flomio Kiosk. The way it works is with NFC wristbands and Android NFC terminals like the Galaxy S4 Zoom. The system lets guests associate wristbands/cards to their Facebook or Email accounts. The NFC Kiosk application has a photographer mode that allows pictures taken to be tagged and uploaded with the scanned wristband's profile.
The architecture of the stack is straightforward. The UUID of the wristbands are associated with the Facebook token of the associated guest. This needs to be stored in a cloud server so that you can effectively OAuth2.0 to Facebook and post on behalf of the guest. This setup also allows us to remain liability free of ill formed posts. Each developer that uses our system needs to create their own Facebook app and get it approved. If spam or content that violates Facebook T&C is posted then only that Facebook app will be shutdown rather than the whole Flomio Kiosk solution.
In order for us to grab the Facebook token for each guest, the guest must go to the events' landing page (we use eventname.flomio.com), enter their wristband code (5 digit number) and sign in with their Facebook credentials. The guest can then select what permissions to give the event application, such as post to "Only Me" and allow access to their "News Feed". Once this registration process is complete the wristband is considered activated and the OAuth token for accessing the guests Facebook profile is stored in the Flomio database alongside the wristband UUID.
When a wristband is scanned at an access point, the UUID is sent up to Flomio via websockets for ultra-fast responsiveness that reveals the guest name and profile picture. This way event organizers can provide a more personalized experience to guests. In photographer mode, the images are taken and then wristbands are scanned. Images are posted through Flomio where event logos are overlaid on the pictures for added brand recognition. Included are predefined post messages as well that event organizers can curate before hand. Here's a simple diagram of how things come together.
For high end cameras like the Nikon D300 we use the Transcend Wifi SDcards as they're more hacker friendly. These run Linux so we execute some scripts to tag the photos as soon as they're taken but upload them later through a background process. Our Kiosk solution is undergoing maintenance right now to add support for our FloJack and FloBLE product lines. Once complete any smartphone will be able to act as a scan terminal in a multitude of deployment scenarios. Sign up for our blog to stay tuned with our latest releases.
Is there a way of detecting the user mobile device or at least know if the user is also using Facebook on a mobile device?
Read the Mobile Device Filtering section on the below url:
https://developers.facebook.com/docs/guides/games/custom-muti-friend-selector/
You should do a Graph API request like the below:
GET https://graph.facebook.com/USER_ID/?field=devices
Just want to add that the field parameter didn't work for me, but fields works. So you can try the below url alternatively (I would suggest to try it first).
GET https://graph.facebook.com/USER_ID/?fields=devices
And do not forget you will need an access_token
GET https://graph.facebook.com/USER_ID/?field=devices&access_token=....
I am trying to obtain information of a users current location I already have the users latitude and longitude what I want to know is are there any businesses (restaurants, clothing stores ect.) in that area. I was just looking at the open graph api and It says that you can search over all public objects in the social graph with https://graph.facebook.com/search. We support searchs for the following types of objects: places https://graph.facebook.com/search?q=coffee&type=place but the ones I really want to use type=location¢er=37.76,-122.427&distance=1000 does not work in the API Explorer could anyone tell me what might be the problem and how do I use this in a windows phone 7 app? Links, code snippets, blog post, ebooks, Other web services that would allow me I could send lat and long and will return the location or businesses anything will be very helpfull thanks
https://graph.facebook.com/search?q=coffee&type=place¢er=37.76,-122.427&distance=1000
This query should give you the results you need.