URL Builder source/medium problem in facebook and google analytic - facebook

I have an issue in Facebook URL builder.
The issue is I have set in the parameter into URL builder that doesn't shown in Google analytic.
Set Campaign name : facebook
Campaign medium: CPC
Campaign name:FB-Traffic-Jan 2 - 31
But then it doesn't show as Facebook /CPC in Google Analytic.
Anyone knows what the problems???
http://www.xxxxxxxx.com/?utm_source=facebook&utm_medium=CPC&utm_campaign=FB-Traffic-Jan+2+-+31
Thank everyone in advance
Best Regards,
Leon Hon
google analytic screen cap
Facebook URL builder screen cap

Surely it is not a problem of the values ​​of the UTM parameters, I just tried with my Property follow a link from Facebook with your UTM:
It is likely that a redirect will make you lose them (try to check the url in address bar when you open the site page by clicking on that Facebook link, probably you can't see the parameters).
If instead the parameters are present, try to wait for the data to be acquired in Analytics report and check in the report of source / medium.
Real-time reporting is not very reliable, especially for campaign values.

Related

Share image including some attributes (e.g. description) on Facebook over web without app validation hassle

I want to share an image from a website on Facebook and pass some attributes (e.g. a description) to the status update, all done by clicking on a link.
A few months ago this worked fine using the sharer.php but by now this script just accepts a URL as parameter and scrapes the target site for Open Graph meta tags. This new approach isn't very helpfull if you just want to share elements on a page instead of the whole page.
Yeah, I could create an app and use the feed dialog to achieve my goal. But I honestly don't want to walk through the tedious app validation process just to share an image with some additional info!
So, does anyone know of a way to avoid this app hassle? Perhaps some undocumented parameters for the new implementation of the sharer.php?
There's no need for app validation - as #CBroe correctly stated! So the feed dialog IS an adequate solution!
Background: I assumed an app needs validation to go live. But I just didn't set up my app properly to make it available to every Facebook user.
See the comments to gloat over my stupidity. ;)

Creating a Facebook App

I am building a website for a client. He has a Facebook page for his business. On the homepage of his site, he wants a feed that will pull in all the updates from his business' Facebook page.
Now, I felt this would be very easy to implement (maybe it is) but I have scoured the Facebook API for any simple way to do this. I am having a lot of trouble understanding which way I should do this. I've settled on using JS to access it, but have no idea where to go from there.
Do I need to create an app? If so, which options do I select so I can access the clients facebook page?
How do I get my app that I've created to show up so a user can authorize it? I have so many questions, and Facebook isn't very good at giving me answers.
Any help is greatly appreciated.
I would suggest you just use the facebook page's RSS feed.
Example
Take his page URL e.g.
https://www.facebook.com/pages/Lazery-Attack/6001014870
Take the number at the end of the url off, and plug it into the facebook feeds URL e.g.
https://www.facebook.com/feeds/page.php?format=rss20&id=6001014870
Voila, you now have an RSS feed you can integrate into the website you are building.
URL Breakdown
The URL is broken down the following way:
https://www.facebook.com/feeds/page.php?format={feedFormat}&id={PageID}
Vaid feed formats are:
RSS - rss20
Atom - atom10
JSON - json
Other Examples
Atom
https://www.facebook.com/feeds/page.php?format=atom10&id=6001014870
JSON
https://www.facebook.com/feeds/page.php?format=json&id=6001014870
Take a look at the facebook API, right here: http://developers.facebook.com/docs/reference/api/page/
You can give it a try here:
http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts
The like box: http://developers.facebook.com/docs/reference/plugins/like-box/ also has the latest posts available
The simplest way is to add a Like Button to the page and make sure "show Stream" is checked on as this will show all recent posts. You can customise the appearance also (e.g. width, height etc).
No App or messy API calls needed!
Try it out here and simply paste the resulting code into your webpage:
http://developers.facebook.com/docs/reference/plugins/like-box/
Not an app, but the Facebook Social Plugins over here at Facebook For Pages

Share bought products from order on buyer's Facebook wall

The company I'm currently working for wants to create a button that lets people share their order on Facebook after they've paid, but with the deprecation of the "Share" button I don't really know how to do it.
The "Like" button does not seem fit for this. Any ideas, anyone?
There are a few ways to go about this.
You can use the standard sharer. This is good for one-off sharing or in cases where you don't have control or don't want to control how the share is rendered and you want Facebook to handle it.
http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>
It won't require you to have an app ID but you also won't get a nice control panel for your applications sharing history/insights. You can query and get some information about the URL your sharing though by looking through the open graph.
I.E
https://graph.facebook.com/?ids=http%3A%2F%2Fwww.cnn.com
https://graph.facebook.com/comments/?ids=http%3A%2F%2Fwww.cnn.com
You can set the URL and Title of the content. The sharer will then look at the metadata on the webpage your sharing to determine the contents of the share. More below.
You can also use the Feed dialog. Which comes with more customization options. The Feed dialog is the best option if your integrating sharing as an integral part of the application. I think at minimum you need to include the app_id,redirect_uri and link property. Look through the properties here. You will need an app ID to use this feed dialog and if your using the JS api you need to authenticate the user too. You can also invoke the dialog directly through a direct url where you don't need to pre-authenticate the user.
With either sharing method, you may wish to include custom open graph metatags on your webpage. This way you can influence how the Facebook scraper makes your share. You can set some default (pre-accepted by Facebook) open graph metatags on your page. Or you can create your own set now in the dashboard. In the Open Graph dashboard on Facebook you can customize how Facebook is supposed to read and interact with your metatags.
You can debug your pages open graph metatags by passing your URL through the debugger.
I.E
http://developers.facebook.com/tools/debug/og/object?q=www.cnn.com
This will give you, for example, JSON or an HTML representation of how FB sees the page.

What's the behavior of the og:url with a google analytics campaign ?

I'm working to implement Open Graph protocole on ours websites.
If I refer to the Open Graph documentation, I should put these kind of input for the og:url value :
<meta property="og:url" content="http://www.website.com/section/article.html" />
If I proceed like this, I should be able to :
- access stats from the facebook insight for a specific url + for the all website.
But I want more ! Indeed I want to be able to :
- See these data on google analytics (not only in Facebook)
- Have another level of analytics based on section
- See what traffic coming from "like button" vs copy/past
To do this, I was thinking to have something like this :
<meta property="og:url" content="http://www.website.com/section/article.html?utm_source=section&utm_medium=web&utm_campaign=social" />
So here are my questions :
- Is it allowed, recommanded, gonna worked ?
- If I do so, could I be sure to not have duplicate item on the FB analytics (http://www.website.com/section/article.html vs website.com/section/article.html?utm_source=section&utm_medium=web&utm_campaign=social)
- Is there another solution ? (linking to facebook.website.com/section/article.html with an analytics code redirecting to website.com/section/article.html ?)
Thank's a lot
Sorry for my poor english syntax (a french guy)
You're asking too many questions at once. I'm going to break it down.
access stats from the facebook insight for a specific url + for the all website. Wrong! The Open Graph protocol is designed to give Facebook and other websites semantic information of the type of content on your website, and what it is. That's where the default information populated when sharing links on Facebook is taken from. Read the manual again. If you want Insights, go to this page.
See these data on google analytics Only a fool would believe that Facebook would allow Insights to be exported to Google Analytics. Google Analytics and Facebook Insights are not interchangable. If you want to track your webpages, use the former, to track your Facebook Page, use the latter.
Have another level of analytics based on section Facebook doesn't provide services to track how long and how much users are on each tab.
See what traffic coming from "like button" vs copy/past Facebook Insights. Works for me!
If I do so, could I be sure to not have duplicate item on the FB analytics Query strings are treat as separate pages as the same page without a query string. For my website ?id=32 and ?id=92 are treat as different pages. That was for my online streaming radio site. Each query string showed a different song. You can sort the query string problem out yourself.
Update! Canonical url's can solve that problem.
If you had phrased your question in an understandable way, you would have your question answered by now; instead of having to ask me on Twitter to answer it.
The End!

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)