Facebook AS3 api - mobile login window missing cancel button - actionscript-3

I am using this, somewhat outdated, library.
When i log in a webview loads the following url
https://graph.facebook.com/oauth/authorize?client_id=123456789&display=touch&redirect_uri=https://www.facebook.com/connect/login_success.html&type=user_agent&scope=publish_actions,user_friends
I get a working login page, but there is no cancel button. Am I using the wrong address, or is this something the library would be responsible for adding?
Regards,
Jacob

Do not use this library. It is not maintained any more, and wasn't updated since oct. 2011 ... It is broken.
I use the Facebook API in AIR using HTMLLoaders and URLLoaders. All the flow is documented on the facebook developper's pages. But it's not that easy.

Related

How to correctly show WeChat profile from website?

I am searching for a best way to show WeChat profile in app after user click on link on some website.
I found some solution here but it's not working for me.
For example I tried these URIs:
link
Or in href attribute:
weixin://contacts/profile/{wechatId}
It's not working for me. After I click on this, WeChat app is opened and immediately closed. Or it show me not found error on Tips tab..
Is there some way to do it?
I think WeChat has not public profile webpage like facebook for now, you can only access other people's profile in the WeChat app by scanning a QR code or search by WeChat id/phone number. The code snippets that you mentioned above has been discarded by WeChat Official(But you may still can see it in some old official documentations).
If you still want to achieve this function, I recommend you just post your QR code in your webpage.
However, some people using the weixin:// as a bug to link WeChat to others apps. You still can generate a tickets like weixin://dl/business/?ticket=***. The *** contains your wechatid and is encrypted by some specific algorithms, which is not opened by WeChat official. And also, buying some third-part server tickets like this to get the jump link works for now but not stable.

Chatfuel Show "Buy" button (via Stripe) using the JSON API block - FB Messenger

I'm trying to build a Facebook Messenger bot using the Chatfuel platform but I came to a halt. I can't find anything about displaying the "Buy" button via the JSON API block. I'm trying to use the Stripe version, not the native FB Messenger purchase feature as the users will be outside of US. Now the button works fine when adding it using the Chatfuel's UI but I can't figure out how to show the Buy button via JSON API.
How should the JSON template look like? What tags do I need? I've been trying to use the examples from the official FB Messenger docs but nothing works, I end up getting the An error in JSON plugin has occurred / Unable to parse JSON message.
Can anyone please guide me in the right direction on how the JSON template should look like in order to display a buy button?
Many thanks!
Apparently there is no way to achieve this at the moment. I've got this answer in the Chatfuel FB support group:
"Unfortunately not possible. You'll have to use a Chatfuel redirect to a buy block or use a webview or create a normal buy button with a link to your checkout process behind it."

How do I get just the Facebook chat html into a web view?

Okay so I was wondering how the Gabtastik chat client (site-specific-browser-esque) manages to present only the chat part of Facebook, as seen here:
I'm making an app where I want to also include this functionality, but i really don't know how it is done, so i need a good kick in the right direction or some code or something.
It just loads http://www.facebook.com/presence/popout.php. I found that out by running strings on the Gabtastik executable, like this:
strings /Volumes/Gabtastik/Gabtastik.app/Contents/MacOS/Gabtastik
Unfortunately, that doesn’t exist anymore. When you launch Gabtastik now, you see this:
Facebook has XMPP access to chat that you can use… unfortunately, integrating it into an app takes much more work than showing a web page.

iPhone: invoking the phone from Javascript

Anyone know of any frameworks that I can use to invoke a phone call on clicking a link in Javascript?
[[UIPaaplication sharedApplication] openURL:[NSURL URLWithString:#"tel:123456"]];
I was hoping to do a web app instead of a native app.
It's easy to do in Android via addJavascriptInterface, but I was wondering if there was anything similar for iPhone?
Just use a regular link pointing to a tel: URL, like this:
<a href='tel:18002752273'>Blah</a>
If the user touches that link, they'll be prompted to call the number specified.
On the other hand, if you're trying to automatically dial a number via Javascript—bypassing the confirmation alert—I'm pretty sure you're out of luck. Too much potential for exploits and annoyance.

How do i allow the user to select more than one file for upload?

Gmail just released an update to their interface allowing the user to select more than one file for upload by using the CTRL-button. How do they do that? You can read about the new feature and see a screen shot here:
http://gmailblog.blogspot.com/2009/02/updates-to-attachments-multi-select-and.html
You will need to find flash-based sollution, like Google did with Gmail. You can try this jQuery plugin that offers exactly that: jQuery File Upload Plugin
Adobe Flash Player.
Here's a good library that I used: SWFUpload
Of course this is a JavaScript library, and not a jQuery plug-in, making it much more portable.
Take a look at RFC 1867 It defines how to upload files over HTTP using the multipart/mixed encoding. You can use the Apache Commons FileUpload library to do this in Java. I don't know how Google does it, but you can manage the multiple selects with JavaScript processing in your page.
Not the method Gmail uses, but the following link, combined with some jquery you can allow an unlimited number of files to be uploaded at the same time: Link
Google isn't using Flash, but actually some clever javascript (well, that IS what they're all about it seems :-) ). Using javascript and css, you can create a file chooser that lets the user select the file to upload. Then, you use a hidden iframe. The act of posting the form with your upload file targets the hidden iframe so that the result returned from the server on success goes into that hidden iframe. Using javascript, monitor the document body of that iframe to know when the file is uploaded.
This link appears to be a quick example of the basic concept: http://www.seemysites.net/projFolder/uploader/