IsMobileDevice Google Bot problem - c#

i have a website that have 2 verisions 1 righular and the other fo mobile
it"s working great , but when google bot research my site ,
my site shown on google as amobile ver.
i think google bot pass the line:
if(Request.Browser.IsMobileDevice)
....redirect to the mobile ver (Not good for google it"s not the right ver)
you know a way to prevent that google refer to the mobile site
thanks

Yes, the problem is by default, the method Request.Browser.IsMobileDevice returns true for any User Agent it doesn't know about.
The trick is to add another .browsers file that identifies all the bots (this will happen with all of them, Yahoo, MSN, etc.) as NOT mobile devices.
I put a ticket in about this and explain it in detail here:
http://mdbf.codeplex.com/WorkItem/View.aspx?WorkItemId=3906

Related

Post to my page from my facebook App using c#

I designed a contest application for my Facebook page.
The application is a web application (MVC / C#), using Facebook connect to authenticate users.
I would like that when a person wins in the game, the application publishes on my Facebook page (not on the profile of the user, only on my page) a message like "Georges B just won a Bluetooth headset."
I have no problem with development or code. But Facebook is a gas plant and it is very difficult to find up-to-date documentation. I tried with Token users, but it does not work anymore. I do not know how to do it because the majority of tutorials on the web use this solution.
Thanks.
OK, negative notes without any explanation. This forum becomes anything. I understand the basics of respect but still, it is not with repression that people are advanced ... Explanations would be a minimum.
I'm going to fend for myself and I'll only read the existing posts without participating in the future.

Facebook OAuth Unable to Connect

I have been trying to create an iOS App using Xamarin (i.e. using Xamarin.iOS on C#) and I have run into an error I can't seem to resolve.
Basically, I have entered all the (correct) details into the default Facebook iOS SDK object as directed in the sample documents. However whenever I click login, the page returns 'unable to connect to server'.
The (URL Decoded) link the SDK sends me to is listed below:
https://m.facebook.com/v2.3/dialog/oauth?client_id=(ID-REDACTED)&default_audience=friends&display=touch&e2e={"init":REDACTED }&redirect_uri=fb-ID-REDACTED://authorize/&response_type=token,signed_request&return_scopes=true&scope=&sdk=ios&sdk_version=4.2.0&state={"REDACTED":"REDACTED= ","0_auth_logger_id":"REDACTED","com.facebook.sdk_client_state":true,"3_method":1}
Pointing to this in a browser returns me to a blank page (when I enter in my ID which I have removed from the link above). I'm pretty certain this is due to an error in the way I have set up my application on Facebook as opposed to an error with the SDK (I'm using the default provided by Xamarin). I have removed the app from Sandbox Mode as directed and I have tried to follow the instructions provided on a couple of forum posts but nothing has changed and I am at a loss right now...
Any advice?
Thanks!
Turns out I've managed to solve my issue...
For some really odd reason, m.facebook.com and facebook.com were added as entries in the hosts file (meaning that they were essentially blocked domains). This was weird given that I could access facebook from standard browsers like safari/firefox (just not the safari browser in the simulator).
If you have a similar issue, please change the hosts file (follow some tutorials online).

Invite Facebook friends to mobile app that is not a game

I have a mobile app (on WinPhone 8.1) that uses Facebook credentials for Azure authed login.
What I'm trying to do:
Provide users an organic way to invite facebook friends to use the app. Important to note, users gain no advantage by inviting friends, however it will enhance their experience as you can compare your progress in the app with the progress of friends (it is not a game).
Where I'm stuck:
I can't use the apprequests dialog, as it is not a game. I would like to use the 'send' dialog, but it is not available in mobile browsers. It is not a website, so using the POST publish API has no valid href to link (other than the app's download page, but that is not what the publish API is meant for).
What should I do?
This post explains how to do it.
Otherwise, I would suggest you to market your app like a game, a bit of gamification should not hurt ! ;)

Linkedin login api windows phone 7 and search people

Ho i'm trying to do an application that search people information on linkedin but i have some problem with the login step,anyone can help me ?
Though you not mentioned what you have done and not share your code so i can help you with some good tutorials for it.
linkedin-from-a-windows-phone-app
http://developer.linkedin.com/thread/1230(download LinkedInAuth.rar.zip)
Also can see..
share a message in Linkedin via windows phone

C# Facebook WP7 - display=touch being read as display=wap by facebook

I'm using the Facebook C# SDK 6.0.20 to allow users using my app to log onto facebook. I'm using the display=touch parameter so that the fb login page renders for mobile devices with smaller screens. The problem is, fb keeps reading it as display=wap which is being deprecated. As a consequence, users are receiving an error message when logging on. Is there a solution to this other than forcing users to see the ugly full screen display on a mobile device screen?
Facebook has been unhelpful and unwilling to accept this as a bug but rather says it is a "feature by design", but everyone else seems to think it is a bug. (https://developers.facebook.com/bugs/355102764525510) Why would facebook try to discourage WP7 developers like this when they apparently have a good relationship with Microsoft, which provides them with map services for fb places?
Facebook display=touch for WP7 is now directing properly after recent facebook updates on July 5th. This should no longer be a problem.

Categories