Tencent Weibo API Web App ID - ios

I'm trying to implement Tencent Weibo sharing on an iOS app. According to the Apple Docs you need to fill the Tencent Weibo Access Key when requesting permissions (ACTencentWeiboAppIdKeyin the options dictionary).
Can somebody guide me through the Tencent Weibo web to get an App ID for my app?
I would say that you would need to visit here to get the key, but the page just shows an empty background for me. Maybe the dev page doesn't work outside China? Can anybody over there check it out?
This answer looks relevant, but I'm not 100% sure it is talking about the same App Key.

Here's a useful step-by-step guide (in English) for registering for a API access:
http://www.cs.cmu.edu/~lingwang/weiboguide/
The process on Weibo's site is indeed in Chinese. The guide gives some guidance here.
One other suggestion would be to download the Chrome extension Zhongwen Chinese Popup Dictionary. If you don't know the meaning of a Chinese character this extension allows you to mouse over for a definition. Will help locate username, password field etc.

The step to get AppKey and AppSecret: here
The SDK about download website: here and Git URL. You can follow the example and just to change the AppKey, AppSecret, and share content.
The API document website: here
ShareSDK is also a good choice for you which have mentioned by #Allan.Chan

Maybe you can use sharesdk to do this click here

Related

Firebase auth web with apple login

I'm stuck on configuring Apple Login for my web app using Firebase Auth.
I did all the configuration on https://firebase.google.com/docs/auth/web/apple but cant seem to find the apple-developer-domain-association.txt file to download and host on firebase hosting.
Firebase configuration:
Services Id:
- The bundle id on the identifier page
Apple Team Id:
- Full App name
Key Code:
- The key identifier
Secret Key
- Content of key file downloaded from the developers page
With this config I get the invalid_uri on the popup when opened.
Can anyone help?
Thanks in advance.
In addition to Ruaridh's answer, make sure that the "domain" is formatted with OUT the leading "https://"
so just: YOUR_FIREBASE_PROJECT_ID.firebaseapp.com
This may seem obvious to some, but I did not see anything in any documentation that specified the format the domain needed to be in. Even Firebase and Apple support were not able to identify improper formatting as an issue in my case. I came across this solution by accident and still cannot find any official documentation of formatting.
I had been stuck on that for a while, so even if it doesn't solve your issue, hopefully it is valuable to others.
You shouldn't need to host the apple-developer-domain-association.txt on Firebase anymore - I have just implemented Sign in with Apple on a Firebase web app and it wasn't required. Apparently as long as TLS 1.2 is supported (which Firebase handles for you), it should work. Firebase docs seem to be out of date. When configuring your Service ID, it says:
Your website must support TLS 1.2 or higher.
You should just need to register https://YOUR_FIREBASE_PROJECT_ID.firebaseapp.com/__/auth/handler in the "Return URLs" when configuring the Service ID in the Apple Developer Console.
Note that Apple doesn't let you use localhost as the return uri, so I found that I couldn't test it locally either.

Facebook - This must be a valid privacy policy url

I have an MVC site that users Facebook to log-in users.
When trying to approve the Facebook app, the only field I can't get to be satisfied
is the
Privacy Policy URL field. I get the following error:
Can't seem to figure out what's wrong. The page is public and can be accessed without authentication.
It contains non-english text (hebrew).
Does the page content needs to comply to some structure ?
Have you looked at this? Facebook privacy policy error
You may have missed one of the requirements.
As WizKid says, it's was probably a temporary issue. Suddenly it just works.
The problem seemed to be just the fact that a previously fetched request for the same URL was not authorised by my server at that time. May be the same might have happened to you too.
Solution: Just fetch the URL of Privacy Policy again using Facebook's URL Debugger. That's the thing between you and your peace of mind.

How to transfer credentials to Glass from Web

Since the "preview" of the GDK is out, I was wondering how we could transfer the credentials of OAuth (say from Twitter) from an AppEngine project (or anything else, open to suggestions) to the APK on Glass. I haven't seen anything on this, and since authentication on Glass would be very hard, how would we do this? I know that I could create a database, but I'm not sure how to make a lightweight version of that. Any other ideas besides a database would be welcome. Thank you for your help.
The easiest way is to have user login on a website, then save OAuth token into a QR code and let the user scan the QR code with Glass.
I have used it in my app Glasquare (Foursquare for Glass), it's all open-sourced:
https://github.com/destil/glasquare
EDIT: There is official way now: https://developers.google.com/glass/develop/gdk/authentication
Maybe you could login from the smartphone version of your app, and transfer those credentials to your glass generating a QR code and reading that QR first time you enter to your Glass app
The video that was published implied there was a authentication step during install but he also said that 'it was still beign worked out'
The bike app (Streva? May have the spelling wrong) does request some kind of authentication
I should add I'm pretty interested in how to deal with oauth in glass also

Twitter Oauth in windows phone 8 app

I need to use Twitter Oauth to login my windows phone app,
What i need exactly is
1)when the user click twitter log in button from my app, i need to show the twitter llog in page in a browser,
2)when he enters his credentials and accept the app, then i should get the user information like, name, gender, bday, what ever i can take.
That,s it, then i can close the browser and make my app active.
I just need to make the user to log in via twitter.
I referred lot of examples, that are all quit confusing and doing all the stuffs in twiiter.
I tried this example
and got this error
'TweetSharp.TwitterService' does not contain a definition fError 2 'TweetSharp.TwitterService' does not contain a definition for 'GetAccessToken' and no extension method 'GetAccessToken' accepting a first argument of type 'TweetSharp.TwitterService' could be found (are you missing a using directive or an assembly reference?)
and i tried enter link description here
failed on that too.
Can anybody help me to do the authentication via twitter for my app.
Thank you.
I tried this example and got success, I contacted the person who have posted that example and got help from him to solve the issues raised from this example.
Actually this Example works fine for twitter integration,
What you have to do is
1)Register your app in twitter, here the link for app registration,
log in and register your app.
2)Make sure you have given the Call Back URL(i forget to give that, and that makes me face lot of issues)
3)Note down the Consumer Key, Consumer Secret and Call back url(we need specify this 3 in our code)
4)Go to Settings, and set your app access to Read and Write
5)down load the above link and change the Consumer Key, Consumer Secret and Call back url as per your app, and then run the example, it will work fine.
Thank you.
If you just want to authenticate using Twitter and don't want to post anything, perhaps you can try Azure Mobile Service Authentication. You can find more information here: mobile services authentication

How to use Yahoo! contact api in iOS application?

I am new in using oAuth and Yahoo! API in an iOS app. I am trying to access my Yahoo! contacts from my iOS app.
I have tried many ways found in StackOverflow. Most of those directed to http://developer.yahoo.com/social/rest_api_guide/contact_api.html; but, I really can not understand all the stuffs described there.
I also found another framework with example resource in https://github.com/yahoo/yos-social-objc.
I am working with this one (the example included in this framework) and got into a trouble here that, when I use the YOAuth to authenticate the app, it opens up the Safari browser and after log into the Yahoo! account is shows an Agreement page. And upon agreement it is showing a page with message
To complete sharing of Yahoo! info with MYAPP, enter code "THECODE" into MYAPP
I do not really know that, what to do with this?
Now I need someone to help me out with this so that, my app get authorized successfully and redirected to my app from Safari with a minimum overhead.
Thanks in advance.
I have found the solution though with a little overheads.
Steps are:
1> Create a PHP script in you own server (say named, YRedirect.php).
2> Pest the following code in it-
<?php
$query = $_SERVER['QUERY_STRING'];
header("Location: YOUR_APP_ID_OR_BUNDLE_ID://oauth-response?" . $query);
?>
3> Add an URL Scheme in your info.plist file with the YOUR_APP_ID_OR_BUNDLE_ID.
That's it and you are DONE with the authentication problem.
But, I am still on retrieving contact info from Yahoo!.
Thanks all.

Resources