Facebook Pixel doesn't recognize external_id parameter - facebook

I used official Facebook documentation (https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters) to add external id parameter, but it is only visible in Facebook Events Manager (Test events).
In Events deduplication it is shown as 0% sent (Conversion API however, has no problem with this parameter detection).
What am I doing wrong?

Try using this package, it will help to simplify tracking using a Facebook Pixel. It also supports multiple pixel Ids. https://www.npmjs.com/package/ngx-multi-pixel
I hope it helps.

Related

How to override event URL in Facebook pixel

Does anyone know how we can change the event URL(Pixel Location) in Facebook pixel?
I have a couple of pages on my website that contains personal information as a query string(PII), as you better know it's forbidden to send PII information to Facebook. Recently I received a warning from Facebook to stop collecting PII. Since this information is being collected automatically from the page URL I don't know to override this URL:
In Facebook conversion API we can make it by adding "event_source_url" please help me with client-side pixel.
Thank you
I don't think you can override it but the only possible way that I've tried and actually worked no script tag debug is to use the NoScript FB pixel instead, for this particular case since you are using the conversions API, I think you can add the event ID for the deduplication, once done, you have to remove the JS pixel counterpart, that's the fix I found for now.

Getting image and text from facebook post

Is there any possibility to extract/get the image and description from Facebook post in code?
Let say we have a public post
https://www.facebook.com/rihanna/photos/a.207477806675.138795.10092511675/10154095214621676/?type=3&theater
Do we able to extract/get the image and description(Get the new dance remixes ...) of that particular post by using Facebook sdk in code?
thanks in advance
Yes, it's possible. You can access the Graph API through a GET request and the photo ID (in your case it's 10154095214621676). As long as the photo originates from a public page you can call for different parameters like name (that's the description), picture (small image), etc.
You can play around with the Graph API Explorer to figure out what exactly you need. For a more detailed information on the possible parameters you might want to have a look into the Facebook Developers Documentation. There you can also find some examples how to handle requests in different SDKs.
Agreed with trotta.
Something like this https://developers.facebook.com/tools/explorer/145634995501895?method=GET&path=10154095214621676%3Ffields%3Dpicture%2Cname%2Calbum%2Cimages&version=v2.9
and you can get all info for the post.

Developing a photo tagging application (with possibiltiy of tagging unlimited tags)

Developing a facebook application similar to:
http://www.fostersartofchilling.com/introducing-strong
Their is an image that will be relieved if all the pixels are tagged.
Hovering on any pixel on the image previews the thumbnail of the user photo and name.
I tried using fb graph api, but we all know fb has policy set regarding no. of people that can be tagged on an image (50 person).
Please Help on this,
Thanks in Advance
if there is a policy and facebook has limited this at the api level, it is very likely that this cannot be done.
and even assuming you can do tagging at the pixel level, the no. of tags would still be limited.

Getting facebook profile picture

i need to get the facebook profile picture of anyone by passing their id. But i no need to use facebook API or Graph anything else.. Just i need to give the url with that id.. Is it possible to get the profile picture in this way? I tried in google but i didnt get it. If anyone knows this please respond me...
Well, I think the only options available are:
https://graph.facebook.com/[PROFILE_ID]/picture (You can include this URL inside a tag and it will work).
Scrap yourself the page corresponding to the profile, i.e. http://www.facebook.com/profile.php?id=[PROFILE_ID] and get the URL of the picture there.
I would suggest you to use the first one, because it gives you more flexibility about the picture size (?type=small, ?type=thumbnail, etc).
Edit
Keep in mind that this answer is from 2011, and Facebook makes changes in its APIs frequently.
Apart from using Graph API as already mentioned above (https://graph.facebook.com/[PROFILE_ID]/picture), there are a couple more ways:
FlipTop has a service that pulls up all sorts of information on Facebook users, including direct CDN URLs (e.g. https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/275588_504804917_147319_n.jpg) of profile pictures. (Link to API documentation)
Cloudinary has a similar service, but with hosting thrown in the mix. They do require you to open an account, but it's free. Then you can use their CDN URL format to link to any picture like this: http://res.cloudinary.com/[YOUR_ACCOUNT]/image/facebook/[PROFILE_ID].jpg (Read more here)

How to get a facebook profile picture under https?

Is it possible to get an facebook profile picture under https using the new Graph API?
We run a site under https, but the profile picture returned by the facebook Graph API is always served as http (when using https://graph.facebook.com/XXX/picture, the request is redirects to http:// ...). The result is the dreaded mixed-content message.
Anybody know of a workaround?
Here is the fix:
you need to the parameter: return_ssl_resources=true
example:
https://graph.facebook.com/FB_UID/picture?return_ssl_resources=true
Use link 1 to get a high resolution image, link 2 to get an icon sized image where 'xxxx' refer to 'facebook_user_id'.
link 1 :
https://graph.facebook.com/xxxx/picture?type=large
link 2 :
https://graph.facebook.com/xxxx/picture?type=small
The Graph API is essentially a very basic API, it's probably not the most efficient method to grab images. A better alternative is to learn how to uSe "FQL" and create a FQL that grabs all the UID's profile pictures. This way, instead of hundred and hundreds of calls, which can be very slow, you grab all the info you need in one call.