我想开发一个音乐发现者计划.我选择音乐数据库,vkontakte.但我找不到c#的vkontakte api示例.
我正在尝试使用Firebase SDK.
用户授权完成后,我尝试将令牌传递给 Firebase。
func vkSdkAccessAuthorizationFinishedWithResult(result: VKAuthorizationResult!){
let tokenString = result.token.description
FIRAuth.auth()?.signInWithCustomToken(tokenString) { (user, error) in
// ...
}
}
Run Code Online (Sandbox Code Playgroud)
错误:[1](空)“NSLocalizedDescription”:“自定义令牌格式不正确。请检查文档。”
我可以在不运行服务器的情况下将 Firebase 与自定义身份验证一起使用吗?
我正在编写一个需要使用从客户端社交网络VKontakte获取的用户数据的应用程序.我确实授权VKontakte.
VKSdk.initialize(sdkListener, String.valueOf(idVK), VKAccessToken.tokenFromSharedPreferences(this, sTokenKey));
Run Code Online (Sandbox Code Playgroud)
并获得了AccessToken.现在我得到名字和电子邮件用户?
美好的一天.关于使用库VK的问题.如何使用VKSDK获取个人资料图片\无法在Internet上找到正确的信息.
我想在vk app中打开我的公共页面(如果已安装).我怎样才能做到这一点
这是与facebook相同的技巧
- (IBAction)facebook:(id)sender{
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://profile/1425897281000202"]]){
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://profile/1425897281000202"]];
NSURL *url = [NSURL URLWithString:@"fb://profile/1425897281000202"];
[[UIApplication sharedApplication] openURL:url];
}
else {
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"https://www.facebook.com/GooodApps"]];
}
}
Run Code Online (Sandbox Code Playgroud)
感谢名单!
为了与特定的 Facebook 好友打开 Facebook 应用程序,您可以使用以下意图:
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("fb://profile/%s", friendId)));
Run Code Online (Sandbox Code Playgroud)
LinkedIn 也有类似的解决方案:
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("linkedin://profile/%s", friendId)));
Run Code Online (Sandbox Code Playgroud)
我认为下一个将适用于 Google Plus(没有测试它,但看起来很有希望):
final Intent intent =new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("https://plus.google.com/%s/posts", friendId)));
Run Code Online (Sandbox Code Playgroud)
我试图找到如何使用此类意图打开 VKontakte (VK) 社交网络应用程序,但找不到它。
有这样的意图吗?如果是的话,那是什么?
我正在尝试在Swift 2.0项目中设置VK iOS SDK.我收到一个错误,我不知道它为什么会发生.
AppDelegate.swift:
//
// AppDelegate.swift
// iosVKMusic
//
// Created by Nick on 25.06.15.
// Copyright © 2015 Funtrum. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
let ret:Bool = VKSdk.processOpenURL(url, fromApplication: sourceApplication)
return ret
}
}
Run Code Online (Sandbox Code Playgroud)
ViewController.swift:
//
// ViewController.swift
// iosVKMusic
//
// Created by Nick on 25.06.15.
// Copyright © 2015 Funtrum. …Run Code Online (Sandbox Code Playgroud) 我正在尝试实现VK API,因此感谢OAuth代码,我得到了一个令牌,只需添加此作用域,offline,audio然后执行此请求即可:
https://api.vk.com/method/account.getInfo?access_token=XXXXX&v=5.62
作为回报:
{
"error": {
"error_code": 15,
"error_msg": "Access denied: no access to call this method",
"request_params": [
{
"key": "oauth",
"value": "1"
},
{
"key": "method",
"value": "account.getInfo"
},
{
"key": "v",
"value": "5.62"
}
]
}
}
Run Code Online (Sandbox Code Playgroud)
为什么也有这个范围呢?
我创建了一个基于flex的应用程序并将其上传到vkontakte.出于某种原因,auth-key参数(在flash vars中)是空的,怎么回事?
这是应用程序的链接.
编辑:
这是我在网站内的应用程序标签:
<embed width="607" height="590" flashvars="api_id=1549899&viewer_id=47745507&
amp;viewer_type=2&user_id=47745507&group_id=0&is_app_user=1&
auth_key=&language=3" allowscriptaccess="never" allownetworking="internal"
allowfullscreen="true"
quality="high" name="player" id="player" style="" src="http://cs1830.vkontakte.ru
/u47745507/13de6ae4d52c69.zip" type="application/x-shockwave-flash"/>
Run Code Online (Sandbox Code Playgroud)
这是网站内的其他应用程序标签:
<embed width="607" height="570" flashvars="api_id=1457219&viewer_id=47745507&
amp;viewer_type=0&user_id=0&group_id=0&is_app_user=1&
amp;auth_key=2a3d8454de9f7a7ada0750050e686b01&language=3" allowscriptaccess="never"
allownetworking="all" allowfullscreen="true" quality="high" name="player" id="player"
style="" src="http://cs4232.vkontakte.ru/u1304144/c1fd79dcbe47ec.zip"
type="application/x-shockwave-flash"/>
Run Code Online (Sandbox Code Playgroud) 有谁知道从vk社交网站获取电子邮件ID的方法?当我尝试时,它仅提供以下信息.
stdClass Object ( [response] => Array ( [0] => stdClass Object ( [uid] => 322372142 [first_name] => Gaurav [last_name] => Pal ) ) )
Run Code Online (Sandbox Code Playgroud)
我使用以上代码拨打电话.
$success = $client->CallAPI('https://api.vk.com/method/users.get','GET', array(), array('FailOnAccessError'=>true), $user);
Run Code Online (Sandbox Code Playgroud)