changing site.master page dynamically based on url - asp.net-mvc-2

I have a website say http://www.xyz.com.
Now I also want to have this same website as an app in facebook say http://apps.facebook.com/xyz.
The only difference will be that in my site I want to have my links on the right side of page vertically but in my facebook page I want to to have the links in a horizontal bar.
As the website is the same it would be best if I could have two master pages and call them based on the url.
Any idea if this is possible.
Thanks
Arnab

Related

Customising a Facebook page - Page App vs. External app with iframe?

Trying to decide between creating a Page App vs. iFrame (Load a hosted page somewhere else like AWS or APP Engine)
I am trying to create a 'tab' on a Facebook page where users can upload pictures to that page for a contest app.
I would like to create some customisation for this contest page.
Hence not using popular off the shelf contest providers like wishpond etx.
The user should be able to view his uploaded pictures on the top layout of the screen while the latest uploads of other users (trending, most liked) can get displayed at the remaining mid, bottom section of the page.
To attain this feature of custom layouting a page, would you recommend creating a 'page app' or create a Javascript based HTML page and host it outside on 'external web server' and render in an iFrame app within my tab ?
If it can be done both ways, would like to hear some adv/disadvantages of each approach.
Hope it explains.
Let me know if I was not clear.
Thanks,
Srik
What´s better is opinionated, but here are the main differences between a Page App (that runs in an iframe on a Facebook Page) and an external Website:
Page Apps don´t work on mobile, so you have to share an external link, check for mobile and keep mobile users on the external link while redirecting desktop users to the Page App.
Page apps are restricted to a width of 810px.

Social meta tags when several articles on same page

This is my first attempt with social share buttons on a classic HTML website (not a CMS).
I understand that social meta tags are now the way to go as you have more control on what you are sharing (you can have more control on the title, the picture, the description, the content type etc..).
What I don't get is how to share a specific article only when you have ten articles displayed on the same page.
All the tutorials I read about sharing buttons are dedicated to a whole web page but I would like to share a specific section of the page per button, not the whole page (one page = 10 articles = 10 share buttons).
How would I achieve that?
Thank you.
(Bonus question: are social meta tags shared by FB, twitter and linkedin or are they only dedicated to FB?)
I don't know if you are still struggling with this, but I've just been thinking about a similar-but-different problem, with a one-page site where the content is swapped out dynamically so that it is not possible to change the og: tags in the header.
The solution requires generating individual pages for each specific article that have their own with dedicated og: tags. Then in your page which lists 10 articles, each one has a share button where the link points to the specific article page, e.g. <a href="https://www.facebook.com/sharer/sharer.php?u=http://yoursite.com/article1.html">.
When some clicks the share button, facebook will crawl the target url for og: tags, not the page you are currently on.
In your case the solution is pretty straightforward, as you presumably have individual pages for the articles already. Mine is slightly trickier because I have to generate extra pages which won't be navigated to from my site but exist for facebook to crawl (and to display the right content when people arrive via the social shares).

Sharing a Facebook URL (new way)

The site I work for is currently using the old sharer.php mechanism for sharing a URL.
We have it designed into our site, but want to incorporate a new method of sharing it.
The shares that we have now.. currently have this structure:
http://mysite.com/shorturl
www.mysite.com
Our users are clicking the second URL versus the first URL, and we don't know how to get rid of the www.mysite.com clickable part.
So with the new Facebook like/recommend structure here are my questions:
1) Is it possible to skin the like/recommend how you used to could the Share link? Use our own custom button to open the share popup or even do it on the page, but just fit it into our style? (Our button is much larger than the Facebook like/recommend button).
2) Is it possible to change, make non-clickable/disabled, or remove the www.mysite.com link from the sharer.php method?
Thanks in advance!
1) No skinning available with the new one thanks to many bone-heads who ruined it for us by abusing that privilege.
2) I cannot figure out what you mean by that. But as a guess, Facebook will count www.example.com as the same as example.com in the counts as long as they end up at the same content with the same og meta tags. For more information about how the og tags work, see http://ogp.me.

Deprecated FB 'Share' Button to Share FB Page w/ iFrame Content

I am building a tab for a Facebook page, and this tab contains the deprecated share button, outlined here - http://developers.facebook.com/docs/share/
By my understanding, the default functionality of this button is to share the URL of the page it currently lives on. But I don't want to share the url of the iFrame contents, but rather, the Facebook page, with whatever the user is currently viewing within that iFrame.
Currently, I have it hard coded to share the URL of the FB page itself but have been told by my boss that this is not what they want. The active page within the tab must also be shared along with it.
Hopefully I've made this clear enough. Thanks in advance for any help or consideration with this issue.
Cheers!
Since the various states of your app/tab are not affected by the parent document's URL, this isn't possible.

Links to external site in canvas tab on facebook page show up within canvas instead of redirecting to new page

I'm on a bit of a deadline and I'm having a problem with the canvas app I designed as a tab on my facebook page.
Using Dreamweaver to create the canvas I have set pictures that link to external websites. Unfortunately, when you click on the linking pictures, the websites are loaded within the canvas area on facebook. I would like them to redirect the entire page to the website link.
Forgive me if this is a ridiculous question, I'm rather new at this whole thing.
UPDATE Okay, figured it out. To anyone who's just starting out like me, all you have to do to have it redirect to a new page is put target="_top"></a> just at the end of your link in the webpage code.