Php :: Setting Facebook Achievement From Flash?

Nov 9, 2011

I'm setting up achievements for a game I'm working on. Flash sends the command to unlock the achievement,as well as the url to the achievement. On my server, I have the code that passes the display order and achievement url from Flash to Facebook. When I press the button to unlock the achievement in Flash, it unlocks successfully in my game and I can see it on the ticker. When I click the button from within the iFrame to unlock the achievement it won't unlock. Logging $result will return 1, but it will not show up in the ticker or count as unlocked.

postachievement.php

<?php
include 'src/facebook.php';
$facebook = new Facebook(array([code].........

View 1 Replies


Similar Posts:


Flash :: Security Achievement And Score API

Apr 29, 2011

Over the years I've become an uber-nerd when it comes to flash game development. Now I'm thinking about looking into using my skills for helping other game-developers out there.I want to develop an API in AS3 which will allow the developer to do (as a start) the following:Display a dialogue which lets the user log into their "account" (hosted on my site).Send a score/value to the website and attribute it to the logged in user.Unlock an achievement (achievements will be set up by the developer in the web interface - which is where they will also get a key of some type to use with their API.Display highscores, other players profiles in-game, etc (show basically any stats in-game).All easy enough to develop straight off the bat. However; where it becomes frustrating is security. I'm not expecting an indestructible solution that I'm fully aware isn't possible, but what would be the most defensive way to approach this? One thought I've had was converting my API to a component so there's no access to the code (unless you decompile). The problem here is it's just not friendly to the developers, though it would allow me to create my own graphics for the UI (rather than coding many, many sprites).Private/public keys wont work unless there is very good protection against decompiling.

View 3 Replies

Flash :: Adobe Facebook API Facebook.login VS Facebook.ui Popups?

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

ActionScript 3.0 :: Tweening Loop - 3rd Achievement Will Never Retract?

May 22, 2009

I've been creating a few flash projects for my World of warcraft guild and one of the things I've been working on is this: http:[url]....
The achievements are moved entirely by tweens done within a loop. Yet for some reason the 3rd achievement will never retract and I can't figure out why for the life of me.Here is the relevant code:

Code:
import flash.events.MouseEvent;
import flash.utils.*;
import gs.TweenMax;[code].....

View 2 Replies

Flash :: Facebook Connect And Actionscript - Make All Of The Facebook API Calls Via JavaScript

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

Facebook :: Flash - Connecting To Facebook From A Remote Website With OAuth2?

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

Facebook :: Flash - Post Swf With Parameters To Facebook Via Application?

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

Flash :: Facebook :: Facebook Pages And Content - Autoplay?

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

Actionscript 3 :: Facebook Login Handler Doesn't Get Fired In Flex4 Facebook API?

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

Flex :: Using A Widget For Facebook Application - Get The Current User's Facebook ID?

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

ActionScript 3.0 :: Using The Adobe Facebook API To Logout Of Facebook From Swf

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

Actionscript 3 :: Get Facebook Post Id With Facebook-SDK?

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

Facebook-flash-api Getting Username Without PHP?

Dec 21, 2009

trying to get the name of the user in Flash (not FLEX) without the PHP. Currently I have the session, the uid. But from here could not move forward towards getting the name.

var fbook:Facebook;
var api_key:String="xxxx";
var secret_key:String="xxxxx";

[code].....

View 1 Replies

Flash :: MMO For Facebook Architecture

Jan 25, 2010

architecture of the social multiplayer browser game with flash.

View 1 Replies

Add Facebook Like Box On A Flash Site?

Aug 23, 2011

<item>
<!-- About Us Item Title -->
<title><![CDATA[<font color="#FFFFFF">Facebook Updates</font>]]></title>
<!-- SUB TITLE -->

[code]....

how can i add facebook like box on a flash site... Above is a block in a flash site i want to show up fb like box.

View 2 Replies

Create A Flash Program That Can Be Run On Facebook?

Apr 17, 2009

im trying to create a flash program that can be run on facebook. they require that the version be 9.0.115. how do i make sure the swf file i publish is this version? im using adobe flash cs3 proffesional

View 1 Replies

Using Facebook Fanbox (javascript) With Flash

Mar 19, 2010

Has anyone successfully included the facebook fanbox in a flash website? I just do basic stuff on the side and I have created a flash website for my buddys company. He wants to incorporate the facebook fanbox into one of the pages. Facebook has a code generator that outputs something like this:

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US" type="text/javascript"></script>
<script type="text/javascript">FB.init("API_KEY", "");</script>
<fb:fan profile_id="YOUR_PAGE_ID" stream="1" connections="10" width="300"></fb:fan>
<div style="font-size:8px; padding-left:10px"><a href="VANITY_URL">PAGE_NAME</a> on Facebook</div>

Is there a way to incorporate this into flash? The other option they have is iFrames. I have never heard of this, but it looks like this:

[Code]....

View 2 Replies

ActionScript 3.0 :: Facebook And Flash With Pagination

May 24, 2010

I need a tutorial about loading facebook friends in flash and it will have a pagination something like that.like you can controll how many friends you are going to display anyone done this before?

View 1 Replies

ActionScript 3.0 :: Using Facebook Flash Graph Api?

Oct 9, 2010

I have som porblem with Facebook Flash graph API I am receiving request, but realy when I check my wall in facebook FacebookDesktop.api not adds Like or unLike

private function likeClickHandler(event:MouseEvent):void{                              handleLikeClick()          }                                        protected function populateLikeCount():void {               if (intData.user_likes) {                    likeBtn.label = 'Unlike';               } else {                    likeBtn.label = 'Like';               }               likesCount.text =

[code]....

View 1 Replies

Deploying Flash Application To Facebook?

Jul 24, 2009

I've come up with a flash game and wish to deploy it on facebook. Problem is, I am not sure where to start!

I've done some research and found out something about needing an external server to host my flash application but I'm still pretty much lost.

So can anyone tell me what are the basic steps to deploying my flash application to facebook?

View 1 Replies

Flash :: Php - Facebook Game Authentication

Apr 9, 2012

I need to authorise my Flash game (which runs on Facebook) users against my game server. I'm able to get their data like id, access token, etc, from Facebook on the client (I'm using the Flash Facebook API) but I'm not sure how to authorize them on my game server (e.g. do a login with a database query). One scenario that I have on my mind:

If I could get the same access token from Facebook on both the client (which I already do) and the server (with, for example, a redirect URL, which I tried but does not seems to work), then I could easily compare the two tokens (together with the user IDs) and thus authorize the user. UPDATE To put it simpler, I want to catch the token that is returned from Facebook on the server-side before it gets to the client (it can be a simple PHP script that parses the URL token parameter). Next, store it in the DB on the server, and when the client queries the server, I can do the comparison.

View 2 Replies

Flash :: Download Facebook-actionscript-api ?

Dec 10, 2009

The latest releases of the facebook-actionscript-api caters to actionscript 3.0 does anyone know from where can I downloaded an earlier version which supporsts actionscript 2.0 ?

View 2 Replies

Xml :: Loading In Flash Not Working On Facebook?

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

Flash :: Do Fullscreen In Facebook Application?

Mar 16, 2010

[Code]...

But what is the trick to enable flash fullscreen in facebook application ?

View 1 Replies

Flash :: Getting User's Friend From Facebook Using As3

Mar 16, 2010

i have seen in flash game that it retrive user's friend in same application.How is possible.I searched the code but i have not found yet.

View 2 Replies

ShowPermissionDialog With ExternalInterface (facebook/ Flash)?

Mar 22, 2010

I trying to pomp showPermissionDialog for allow the user to post something in a friend Wall.I have the flowing javascript code:

<script type="text/javascript">
function showStreamPermissions() {
FB.Connect.showPermissionDialog("publish_stream", doResult);

[code].....

View 1 Replies

Flash :: Send Facebook Message From It?

Jun 5, 2010

So I can get online friends without problems into my Flash, but how can I send them a message to Facebook chat? Is there any API for that? I found some applications that are doing this.

View 1 Replies

Flash :: Facebook App Invite From Inside The App?

Jun 9, 2010

i want to make a facebook flash app. Now im trying to make it possible to invite your friends to the app. I want to do this from within actionscript without the user having to leave the app.

The ideal solution would be to make a custom interface show possible invites and then doing some URL request containing the friends id's

View 2 Replies

Actionscript :: Post From Flash To PHP In Facebook App?

Sep 2, 2010

I published 2 days ago a Facebook app, it's a flash game, after the game over, the flash file POST score to my php file, Publish your score to wall if you beat your highscore, Facebook disabled the application because bad reviews from users.

How to POST from Falsh to PHP without redirecting the user, i want after the game over POST score, insert it in DB, and show the user Stream Publish popup if he want to publish to wall the score or not.

View 2 Replies

Flash Facebook Canvas Application

Sep 7, 2010

I need to embed a flash application(that will access FB API from within) in Facebook Canvas page.If I use , some FB related details(like session key) will be automatically passed to the flash. But since, FBML is going to be deprecated, I want to use iFrame. Is there any way to pass those variable automatically or do I have to retrieve them in PHP and pass it to flash through loadvars?Also, if I have to do it manually, is there any documentation for the php sdk 2.1 ? (already searched about it a lot, and I think there is no doc nor tutorial for 2.1)

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved