PHP :: Facebook Sessions Not Working In Flash
Apr 28, 2011
We have a Flash site that integrates heavily with Facebook. When users sign up we get them to allow a Facebook app that ties into the site. This is done through the AS3 Facebook API library from Adobe. When users have done this, they should then be able to sign up, submitting some personal details and so on. The Flash sends this request to our PHP which then checks to see if the user is actually logged into Facebook, and has allowed our app. The problem we're having is that when a user goes to do this, the PHP facebook library says that the user is not logged in. If we then refresh the page and try signing up again, everything works fine.
View 1 Replies
Similar Posts:
Jan 25, 2010
I have a flash file which calls up a url say [URL] which is caught and used up by a python/django code and it creates and redirects to an XML. which is loaded by flash, to get values from the database.
The setup works fine when outside facebook, but as soon as I put the setup in facebook, it stops loading the XML completely.
View 1 Replies
Oct 24, 2010
I'm currently building an application using the Adobe Facebook API and I've run into an issue where for the login method the Facebook login popup displays but when doing a Facebook share/post the popup is blocked.
This code works fine and displays me a Facebook login popup without question (Firefox):
var permissions:Array = ['publish_stream'];
Facebook.login( onFacebookLogin, { perms:permissions.join(',') } );
However, the following code running in the same application throws up a popup blocker (again Firefox):
Facebook.ui( "stream.publish", "popup", params );
Does anyone know of a work around this issue to make the share popup come up just like the login popup?
View 2 Replies
Jan 25, 2010
I have a flash file which calls up a url say [URL] which is caught and used up by a python/django code and it creates and redirects to an XML. which is loaded by flash, to get values from the database.
The setup works fine when outside facebook, but as soon as I put the setup in facebook, it stops loading the XML completely.
View 2 Replies
Jan 25, 2010
I have a flash file which calls up a url say which is caught and used up by a python/django code and it creates and redirects to an XML. which is loaded by flash, to get values from the database.The setup works fine when outside facebook, but as soon as I put the setup in facebook, it stops loading the XML completely.
View 4 Replies
Dec 12, 2009
I'm using the gskinner.com bridge to load and talk between a as2.0 object in as3.0 . The library works smoothly. If I upload the html it works smoothly. But when I embed it as using fb:swf on facebook, the as2.0 object stops loading, any clues?
View 1 Replies
Jun 13, 2011
When setting wmode to "opaque" (or transparent) my flash app becomes slow on Facebook. I can particularly notice it when moving the mouse around (even on a tiny area of the screen), if I don't move the mouse then the slowdown doesn't seem to happen. Maybe its because its sending all events to facebook too?
View 1 Replies
Nov 3, 2011
I am trying to embed a facebook video on my website but it gives "Video Unavailable. this video has either has been removed from facebook or is not visible".video is public to everyone, is not deleted and I can watch it on facebook via other browsers that I am not logged in. I tried both below embed codes, neither is worked.
<object width="500" height="300">
<param name="movie" value="http://www.facebook.com/v/VIDEO_ID"></param>
<param name="allowFullScreen" value="true"></param>[code].....
View 1 Replies
Mar 21, 2011
I have tried installing and unistalling the Adobe Flash Player several times to get it to work, but it is not helping. It won't work when I am logged into my facebook account.
View 1 Replies
Jan 28, 2010
Since the Flash Player (or, more exactly, the URLLoader class) will not let you read HTTP response headers or cookies set by the server, and if you get hold of a session cookie through some workaround like reaching out to the browser and run JS, you can't send it to the server, because, among others, the Cookie header will be blocked. Now I'm building a Flex client against an HTTP API for my server product. I control both sides, so I can get get around the above limitations, now I'm wondering how. I see the following options:
include the session token in the HTTP payload include the token in the URL build my own HTTP client (... with blackjack, and hookers ...) in AS, using the Socket class I don't like (1), because I'm reimplementing functionality in my protocol that is already built into Struts, which I'm using to implement the server side. I then have to ensure that either both behave the same way, or turn off the usual way of session management and force other clients to use my protocol where they could just have the browser deal with it. I don't like (2), because I understand that there are security concerns with this, although I'm not too sure which
I don't like (3), because it's 2010 and tons of HTTP clients have been written by smarter people than me. So, are there other opportunities? Which of my "don't like"s do you reckon least severe? Are there ways to mitigate the problems I listed? For example, how insecure are session tokens in URLs really?
View 2 Replies
Jan 15, 2011
I'm writing an application which uses cookie-based sessions for authentication. All was well until I tried to integrate the uploadify jQuery plugin into my site. I need uploadify to send the files to my upload.php file. When I check the existence of any preknown session variables in that upload.php script, I get nothing. I've tried print_r($_SESSION) and got an empty array.
I'm not sure if this a problem with my php sessions code or my jquery uploadify code. I'm somewhat new at both.
/** INSIDE JQUERY **/
$('.fileUploadify').uploadify({
'scriptData': {'filesUploaded':'1','PHPSESSID' : <?php echo
[Code]....
View 2 Replies
Jun 1, 2009
I'm trying to determine the practical difference between using the com.facebook.session.WebSession and com.facebook.session.JSSession. The documentation ([URL]) has more around WebSession - but the example I have which is closest to what solution I'm trying to implement uses JSSession and it looks like I could avoid all of the JavaScript pass-through & ExternalInterface calls I'm making. It appears that the benefit of using this new ActionScript Facebook API is to avoid having to make all of the Facebook calls via JavaScript.
View 5 Replies
Jan 13, 2012
i need to connect to have a button on my website that connects to facebook (if not already logged in) and posts to the users wall.I've only done this from within an iFrame - do i still need AppId etc etc?
View 1 Replies
Apr 4, 2012
I have a facebook application where the user choose 4 of his friends and then it creates a video (swf) with the pictures of your friends in it (loaded via xml). So I need to share this video on the user timeline. Everything works fine but the video is not embedded in the post on his timeline, there is only a post with the link to the page in it.The weird thing is, if I post the url directly on my timeline, the video is embedded, but not if the same link is posted via the application.here is my code called by the share button in js :
function postToFeed() {
var obj = {
method: 'feed',[code].........
View 1 Replies
Dec 6, 2011
I've recently used the 'Static HTML' application to add autoplaying flash content to a Facebook Page.Nothing too fancy, no sound, and only a few secs long. Now, Facebook say:-"Apps on Pages must not host media that plays automatically without a user's interaction."
What do they mean by 'Media' exactly? I can understand a ban on autoplaying audio content but does the ban extend to something as harmless as an animated GIF? Or more to the point, does an autoplaying .swf file fall under this?
Lastly, what course of action would Facebook take if I did violate this rule? Would they issue a warning (giving me an opportunity to remove the 'offending' item) or would they just shut down my page without any consultation?
View 2 Replies
Nov 8, 2011
I have an adobe air application. I just added facebook features in it. My problem is that user can login and do activities properly. Following the code that I am using for logout :
protected function logout(callback:Function=null, appOrigin:String=null):void {
this.logoutCallback = callback;
//clears cookie for mobile.
var params:Object = {};
params.confirm = 1;
[Code] .....
I am passing [URL] as appOrigin. But the logout functionality is not working.
View 1 Replies
Mar 23, 2011
I have a .swf and the external link buttons work fine except when on facebook the clickable buttons do not lead anywhere.
View 7 Replies
Jun 2, 2010
Trying to get data from php to swf using sessions, but have a bit of a problem. Here, I create the session
Code:
<?php
if(isset($_POST['action']) && $_POST['action'] == 'submitform')
{
$name = $_POST['name'];
[Code]......
I dont know if this is because i havnt placed it on the server yet, or if its something I need to resolve now?
View 21 Replies
Jun 26, 2009
When I login a new session is generated. How can I later know for which login the session was generated? I am getting the session value, but how do I know which user the session is for and redirect him to that page?
View 1 Replies
Nov 17, 2011
I am thinking about porting my social netowrking site code to Adobe Flex / PHP and was wondering how does one go about handling sessions in this case. I would imagine Adobe Flex doesn't really know if a PHP session has been started or not therefore, I would have to research how to accomplish this. One idea I had was to created a session token string after a successful login and pass this token to each http request the user makes for data. E.g. [URL]. Each time a request is made to this page, a MySQL query is run to check if the token I passed in the url matches against the token created for that user during login. If this is true, then data is returned.
View 1 Replies
Feb 2, 2007
So I had been working on this issue where I couldn't get a swf to reload in the same state it was originally loaded. Well further testing leads me to believe that my Model class is being persisted over multiple sessons in the player. Here is my model class:
[Code]...
So when I fire up the swf the first time in the IDE's player, i get 'no previous instance' as you would expect, then I hit ctrl + enter to restart the swf in the IDE's player and I get 'destroying instance'. So this tells me that the Model instance is getting persisted over player sessions. Unless I am mistaken, and correct me if I am wrong, I would assume clicking ctrl + enter (i.e refreshing the swf in the player) would act like a new swf session.
View 3 Replies
Nov 8, 2009
I'm working on a game using Actionscript 3.0 and Flash CS4 and I'd like to make it save a player's scores and achievements between sessions locally on their computer. I thought the best way to do this would be by using cookies, and I started looking for ways to use JavaScript from ActionScript to save and load that information.While I was reading the articles I found on the subject, they seemed to suggest there was another way of saving information between sessions using something built into flash directly. Does anybody know about this? I'm not even sure what it's called. Even better if I could get some straightforward code for setting and recieving data from cookies using JavaScript or some other method.
View 3 Replies
Apr 5, 2011
am setting up multiple multicast sessions, i generated configurations for each session using a seperate stream name, IP address, port.
1) Is it possible to run multiple multicast session.From configuration, looks like we can, but need confirmation
2) How can i test these sessions using the default player ? or any sample player
View 1 Replies
Jul 6, 2011
As the title indicates the question is in regards to the service layer of a flex application. Specifically in a test case class. To call the services the user must first authenticate through an html/CF based page. Once that's done and the authentication has occurred the user is directed to the html page with the flex application embedded in. Once authenticated the server side CF code writes a cookie to the users computer. This cookie is then read by the flex app and is required for the flex app to make calls to the CF services.
The question is: how should this be handled in a test case class for the service class in the flex app? The following steps need to basically take place: use some account data to hit the server and authenticate, the cookie then needs to be written (which it will already), then the test case needs to pick up the session id from the cookie and pass it to the service call within the test case. That just all seems like too much for a test case class.
So, how is this type of thing usually handled. From what I gather it's typical for web service calls to require a session id like this.
View 1 Replies
Mar 13, 2011
I have literally spent HOURS trying to solve this mystery... but simply can't seem to get hold of it.
I am using the same code lines (literally!) as the example here (official adobe tutorial) and I get different result.
[Code]...
Everything works fine, i.e. everything till it is time to fire the loggedin event. I get asked to log in and all permissions are asked correctly. After I log myself in to facebook, the loggedin event doesn't fire. Is there any way of solving this problem??
View 1 Replies
Sep 24, 2009
I am using a Flex widget for my facebook application. How can I get the current user's facebook ID?
View 1 Replies
Jul 7, 2011
I think I inherited bad code, here's the deal: In my command, I create a local var for the remote object and then call a method on it. In the result, if there's no data, I start a timer. This timer broadcasts an event every 2 seconds that continually calls this command until data is returned. Then the timer is stopped.
What we're seeing is that the method returns data once, and then the next time it doesn't (dupe Flex sessions error). It basically alternates. If we click really fast, sometimes we'll get two to work in a row. At times, the Java dev is seeing these requests returned with different JSESSIONIDs. I believe this is causing the duplicate Flex sessions error. I'm using Cairngorm; here's the execute command.
public function execute(event:CairngormEvent):void
{
ruleName = (event as FetchReportEvent).ruleName;
var ro:RemoteObject = ServiceLocator.getInstance().getRemoteObject("quantRemoteObject");
if (model.guid != null)
[code]....
View 1 Replies
Jul 21, 2011
I want to add the ability to have my flash game record the users progress then save to a database. That part is pretty easy, but how can I make it so the user can login and continue their game. I also wanting to know if it'll be better for the game progress to be saved with SharedObjects or with an SQL database. I would like it that the game could be played on any website and their data can still be accessed and played if that is advised. I am new to user sessions with AS3 and need pointers.
View 1 Replies
Sep 24, 2009
I can't find in the Adobe Facebook API how to log the user out of Facebook. The FacebookSessionUtil (and the related sessions and Facebook classes) all have a .logout() function, which will invalidate the user's current *session* within the swf, but it doesn't log the user out of Facebook.
What am I missing here? How are you supposed to log the user out of Facebook with this API? Since it's part of the TOS for Facebook Connect apps, you'd think this would be available in the API somewhere.
View 0 Replies
Nov 8, 2011
After I upload a photo on a desktop facebook application i need to store it's post id in a database. From the facebook ActionScript SDK documentation:pi() methodpublic static function api(method:String, callback:Function, params:* = null, requestMethod:String = GET):voidMakes a new request on the Facebook Graph API.Parameters [...]callback:Function — Method that will be called when this request is complete The handler must have the signature of callback(result:Object, fail:Object); On success, result will be the object data returned from Facebook. On fail, result will be null and fail will contain information about the error.
So I implemented my callback function as follows:
protected function handleUploadComplete(response:Object, fail:Object):void{
status = (response) ? 'Success' : 'Error';
[code].....
View 1 Replies