I have an email that get sent out to users, which needs to have a share to facebook or twitter button.
I know there are URL's which can open the share dialogs etc, but the problem is i need to track the number of shares for the item being shared (just a count).
I know there are things like the Twitter Count API, but it's unofficial, private and not supposed to be used, so i don't want to use that and then have it turned off and left with no data to work with.
The only thing i can think of, is have the email link to my website, which contains JS which opens up the Twitter/Facebook dialog, posts it then in the callback tracks the information back to my server.
Any other ideas?
You can set the link to an 'essentially' blank webpage, and use a typical Google Analytics tracking parameter on the link to record the count. Then, create an auto redirect form on the 'blank' webpage so when people click the link, it goes to the page, which then automatically redirects to the share link.
It's a roundabout way of achieving what you want but is one way..
Related
During checking traffic source on e-commerce website i get confused.
I know that param gclid=.. means that user is tagged by GoogleAds, while fbclid works the same way but with facebook.
However, I dont understand what does it mean while they are both together in single url, like:
www.example.com?gclid=CjwKCAiAyrXiBRAjEiwATI95mafT26kwak0CFBgICH0ZlLqafSBuyyoUBVZihf22pPdG9QK8DUmiZBoCh8YQAvD_BwE&gclsrc=aw.ds&fbclid=IwAR0oihEZbw0Q43GXiv4YW9n_G9odTEcpxzLtMxjYYqgrTt5EM-BcKqrJyuU
Is it possible that google ads is displaying ads on facebook and that is why gclid and fbclid are attached to url at the same time?
I have asked the same question on support google and get reply from them.
This case happens when a link including gclid is pasted on a Facebook
page and somebody clicks on the link.
Source to answer.
Actually it's quite possible and normal.
If user searches on web via Google, clicks on Ad and is redirected to page, for example https://example.com/index?gclid=randomstring then it displays at the top of their browser.
Now user can copy this link and share it via Messenger (more common case) or facebook to someone. Then Facebook will not remove gclid and append fbclid.
As a result, you get a link with both these parameters.
all.
I want to add utm_ parameters to all my social share buttons. I successfully included the parameters into the Twitter and G+ without any problems. But have a lot of problems with Facebook and Pinterest.
Pinterest strip any utm_ parameters.
Facebook uses a canonical URL instead of I provided.
Solutions I was tried:
1) using an URL shortener bit.ly. Pinterest doesn't allow to use it. Facebook still use the canonical URL instead of one I provided
2) Use the fb_ref for the Facebook. We use Wordpress VIP hosting and this hosting strips any parameters from facebook.
3) Rename the utm_ parameters to utm. It was fixed the problem but I want to keep all my tracking info consistent.
Any ideas? Thanks
UPDATE 12/21/13
I want to have the following. Scenario:
1) user shares the content from my site (http://example.com/url/?utm_campaign=onsitesharebutton)
2) user's friend goes to Social Network, for example Pinterest, and see this Pin
3) user's friend clicks on this Pin and goes to my site. When he goes to my site, I wanted to have the utm_* parameters in the URL, ie http://example.com/url/?utm_campaign=onsitesharebutton. In this way I will know that this user arrived through a certain source or overall marketing channel as part of a certain campaign
Problems:
1) Pinterest strips UTM_* parameters from the my URLs
2) Facebook uses canonical URL to share and ignores my UTM_* parameters
I still would like to change a few things about the Facebook Like / Share button and Google+ button seems to sometimes have issues in Safari, but I successfully track likes, pins, +1s, tweets, and even LinkedIn using a variety of techniques.
Facebooks recent changes to their buttons just confused me. I had everything working and then they change all.js or whatever the JavaScript is you must use. They also changed the colors and size. I wasted a lot of time on this and I'm still not happy but I do track everything carefully in Google Analytics.
I am looking for Like Button to be shown in my ios native app, users of that app have already connected to app via facebook account.
there are several questions related to Facebook Like Button on stackoverflow but those are not specific to authorized single facebook page of the app.
According to official doc of facebook, facebook pages can not be liked via built-in action o open graph api.
But want only one official facebook page of that app to be liked by user when he hits like button. i don't want user to navigate away from the app or login again in web view to like facebook page.
is it possible to like app's facebook page without promoting user to log in again in webveiw?
Edit
Findings
1. https://stackoverflow.com/a/5837036/1632984
2. Comment by wallacer
"the general consensus does seem to be that you can't like a page on behalf of the user, however I just had an ios game like a page on my behalf. Extreme Road Trip successfully manages to get you to like their own page. I wish I'd paid more attention when I did it now..." – wallacer
This still can't be done directly using the graph api ( to the best of my knowledge ). What you can do is open a webview to the page you want the user to like. If you're rewarding their liking your app or something, when they close the webview (you'll have to provide a close button), you can use the graph api to check whether they like your app page. As far as I can tell this is the best current solution - and seems to be the approach taken by mobile games.
That said, I haven't used Facebook SDK 3 yet, so there may be something in there that could help you.
It appears that Liking a page on behalf of a user is still impossible. I've glanced over the iOS SDK Reference, and it doesn't seem like there is a built in mechanism to like anything.
However, in reading one of the other posts you linked to, and remembering that Facebook opened up the Like open graph action so app developers could allow their users to like content generated by their application...I found this link about built-in-actions (likes).
According to that link, you can post Like actions to your users by POSTing to https://graph.facebook.com/<user_id>/og.likes with the POST params for object (the open graph object URL you want to like on behalf of the user in this case your page's url. eg. www.facebook.com/yourpage) and access_token (obviously, for your user).
I'm not totally convinced that will work; though it is conceivable. My second thought would be to create an Open Graph Object for your page, and have all your users like that. Though, that is a little less ideal, as it removes the possibility of people finding your Page while they're on Facebook and would require you to put a lot more effort into getting likes for the Page via your website, application, etc.
I hope that helps a bit, good luck.
I can't seem to find exactly what I'm looking for. We're trying to build an app to run solely on a Facebook Page. We want to show a landing page if they don't Like the page, and the contest entry form if they do. This functionality works.
Before showing the contest entry form, we'd like to authenticate the user viewing the app so that they can just hit "Enter the contest!" and we can automatically pull a name/email address.
Any of the methods of authentication I've seen described, including through the Facebook Developer docs, don't work at all.
I saw something that said they need to interact with the app first, then you can get the id, but that doesn't work either. I also don't get the page id passed with the signed request.
Its also pretty unclear whether I should be using an iframe or just FBML.
Could anyone point me in the right direction, please? Thanks!
You need to create a fan page and add the FBML plugin to that page, then you will need to insert a short code that will determine if a facebook user has clicked 'Like' or not and by determining that you will decide weather to display the content of the landing page or not (using an iframe). You will probably like to also set the FBML box that you create as the default view for members who didn't press the 'Like' button yet, you can change the default view in your fan page settings.
On the iframe, you will need to use the Facebook API if you want to retrieve any user information from Facebook, for that, you will need to register a new application with Facebook. Go to developers.facebook.com for the API integration and app registration.
Also, what do you mean when you say:
Any of the methods of authentication
I've seen described, including through
the Facebook Developer docs, don't
work at all.
Well, it appears you can't do it that way. The client was very specific in wanting that functionality but we ended up convincing them to go for a redirect to the canvas page to have the app authorized and the contest entered instead.
I've been looking at the Facebook API to find some way to edit a user's Likes (that is, add or remove items from https://graph.facebook.com/me/likes/). The API doesn't say anything about it specifically, but does say this:
You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs above.
Where above, one of the connection URLs is the aforementioned https://graph.facebook.com/me/likes link. However, there's no documentation for the PROFILE_ID/likes post, and whenever I try to post it returns the error "invalid post_id".
I assume this is because to like something, you post a request to POST_ID/likes. It's a bit inconsistent. What I'm trying to do is get the user's profile to add a Page to their likes (by posting using the page's id as an "id" parameter in the post body). However, it seems like there's just no way to edit user's likes.
At the end of the day, I just want to allow a user to click a button in my application (mobile device application, not a web app) and have them add our Facebook page into their list of pages, and I've found no way of doing that short of presenting our page to them and making them click on the "Like" button manually. Many other things are supported without showing the Facebook website, like posting to their wall or making albums, but I can't find anything to do this.
Any ideas?
Looks like I can't. Not in the way I want to anyway.