简体   繁体   English

如何从Appcelerator Android应用程序打开Facebook Album?

[英]How to open Facebook Album from Appcelerator Android app?

I know how to make an intent in android, you open a specific album of a Facebook page. 我知道如何在android中显示意图,您打开了Facebook页面的特定相册。 I tried opening the page, but I can't open the album page. 我尝试打开页面,但无法打开相册页面。

var intent = Ti.Android.createIntent ({
         action: Ti.Android.ACTION_VIEW,
         data: 'fb: // page / {id}'
}); Ti.Android.currentActivity.startActivity (intent);

I put it this way: 'fb://album/131980240302966?owner=#116121531888837' 我这样说:'fb:// album / 131980240302966?owner =#116121531888837'

But it does not work, this is the page I try to access ... 但这不起作用,这是我尝试访问的页面...

https://www.facebook.com/media/set/?set=a.131980240302966.29820.116121531888837&type=3 https://www.facebook.com/media/set/?set=a.131980240302966.29820.116121531888837&type=3

Can you tell me what is my mistake? 你能告诉我我的错误是什么吗?

Thanks in advance. 提前致谢。

It looks like you'd like to open an URL scheme? 您似乎想打开一个URL方案? You should use Ti.Platform.openURL for that. 您应该为此使用Ti.Platform.openURL

Here's a list of Facebook URL schemes you could try: http://wiki.akosma.com/IPhone_URL_Schemes#Facebook 这是您可以尝试的Facebook URL方案列表: http : //wiki.akosma.com/IPhone_URL_Schemes#Facebook

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM