Pull FB graph object initialization to a separate function so it can be used in other controller actions. Delete badge when achievement is deleted and if it could not be created. References Coursemology/coursemology.org#100.
Pull FB graph object initialization to a separate function so it can be used in other controller actions. Delete badge when achievement is deleted and if it could not be created. References Coursemology/coursemology.org#100.

nnamon/coursemology.org,nnamon/coursemology.org,allenwq/coursemology.org,Coursemology/coursemology.org,dariusf/coursemology.org,allenwq/coursemology.org,Coursemology/coursemology.org,allenwq/coursemology.org,nnamon/coursemology.org,allenwq/coursemology.org,Coursemology/coursemology.org,nnamon/coursemology.org,nnamon/coursemology.org,Coursemology/coursemology.org,dariusf/coursemology.org,dariusf/coursemology.org,dariusf/coursemology.org,Coursemology/coursemology.org,dariusf/coursemology.org,allenwq/coursemology.org