Status and Objectives

The reason I have not 'told everyone to come play' yet (not that other people can't, feel free to get a couple more friends in on it, but play at your own risk please:) is because there is one more critical bug I want to address and fix, this is piece flipping+lightning nav+offline=incorrectly shown pieces = very very bad - so that has to get fixed first - then [FIXED 11-11-2017] I think there are one or two bugs in lightning nav+offline which cause occasional navigation jumping glitches - so I want to address those, fix them, and there may be one left with BH Baby,

Refresh Your SBR Page - New Version - Just Now

New Version - Just Now - Refresh Your SBR Page (F5)

Facebook declines name requests for names after a short period so the names disappeared. (Now Fixed (for the core activity menu only not the pages like game page and player page that will be next))

New Changes:

  • I made a new database table for saving names

  • New PHP that adds names one-by-one as people arrive

  • Used a PHP script with the Facebook Graph API call listed below to populate the names for all the ids that were already in the players and games database tables that are already present

  • Added PHP and MySQL joins to send the new name data through to the SBR game page javascript

  • The page javascript was actually mostly ready to accommodate the name data I mostly just had to comment out all the javascript and PHP calls to get names from Facebook that seemed to be all over the place and are no longer needed

  • That's it for today, but: Upcoming plans for the next upcoming changes will either be to fix the jumpy data on player, game, top ranked player pages and/or the bug in B.H. Baby's Beeversi game and/or both[DONE]

So the way it's getting names now is one by one with a call like this

$comma_separated_list_of_ids=implode(',',$_player_ids_array);

$url = 'https://graph.facebook.com/?access_token='.$access_token.'&ids='. $comma_separated_list_of_ids.'&fields=name,first_name,last_name';

  //***** you can put 'id' instead of 'ids' for just getting one-by-one. The FB return limit on multiple names is 50 at a time, and you can get more with subsequent requests but then there is also another hourly limit that cut responses off if you request too many during a certain period *****	

$info = json_decode(file_get_contents($url), true);	

Turn ids into id if you just want one.
This is the main way (I think maybe the only way now) that SBR is getting names from Facebook.
(But just one-by-one with one id at a time and 'id' instead of 'ids')
This is actually the line copied from the call I used to get groups to populate the database (up to 50 at a time) - and the call to get the single name is exactly like it except that ids is id instead. Its the fb graph api. I think its correct but they change it on me every couple years it seems like so who knows anyways that is currently the way that Super Bomb Reversi gets peoples facebook names from facebook (it is core functionality this may help you to build your own facebook app I dont know)

names and jumpiness

So when I built SBR, according to what I was reading and working with at the time, you were supposed to write <fb:name id="bladebla" ...></fb> and request facebook to put the names on the page. Then at some point they started only sending back a certain amount and cutting it off. It didn't used to be jumpy either. Now its super jumpy and the names stop arriving after a few minutes if there's more than one player. So I'm trying to fix it.

things and now, improvements!!

Just now i made a change to the core responder of the program which turns out to have been spinning out past where it needed! Stuff was happening on the server, looping, that didnt need to! Due to a feature I had added, long polling. I fixed it. Sortof a happy - medium now . It does still loop at the server - five times - if no updates are needed. This slows down the back - and - forth pulse without slowing down the mechanism if something changes the new data gets posted - but it checks back in every five times now starting - right now.

Top Work Priority List

Edit 2017-05-29:Going to start working on it again soon. Edit 2017-04-20: I'm bumping the name jumpy thing ahead of BH Baby-Beeversi bug - but that will be soon after. Those two are the main problems right now - luckily neither one is very critical. The BH Baby bug appears critical but actually isn't: I'm pretty sure it happens when It doesn't distinguish priority between moves (strategy-wise) so it's selecting randomly.

Tags:

SBR Status - Plans - History - Future - Explanation - !!!

Hi, In 2013? My hosting account or the sbr code or the internet or the NSA or net 2.0 neutrality or AT&T or Comcast or Aliens or something caused ....

latest change - possible ill side effects

just now i found and fixed an obscure bug where *sometimes if you hit 'online' nothing happens, you have to *try again** so I thought that was annoying because it happened every so often, just *didnt go online* when you hit 'online' so i figured out where it was - where I could patch it. So I did. It seems to work - except for one thing - one of the first moves I made with this version seemed to *knock me offline*.

Welcome to Super-Bomb.com Discuss

Welcome to Super-Bomb.com Discuss

Here you can discuss whatever you want especially with regard to SBR, bug notes, feature requests, etc

Subscribe to Super-Bomb.com Discuss RSS