I have an app that allows users to construct a personal card with a message, photo, song, etc. for an occasion (birthday being just one example). You can check it out here: apps.facebook.com/getmixxd
I was using graph api to allow the sender to post to recipient's wall with the option to make it public or private. As of Feb 5th this functionality is disabled apparently.
My question is what is my best alternative? Just using the dialog box doesn't seem to solve the problem because one of the features users asked for was ability to specify when the card was delivered (my friend's birthday is tomorrow, but I want to construct the card today and have it delivered tomorrow). Also, none of the preset custom actions appear to apply.
Looking for some advice from FB gurus on what my best option is...
Thanks!!
Mike
First, I'm not an FB Guru, and this is also problem of mine.
Here's what I've repeatedly seeing for the solution:
https://stackoverflow.com/a/15234553
Your best bet is the Open Graph API, which is you have to submit an Application for and "action" an a corresponding "object" for that. For example action "cook" and object "recipe".
Related
I am currently trying two methods of web service API (Moodle 2.6) to call with REST:
1 core_course_get_categories
2 core_course_create_courses
With both I have the following problems:
1
The function returns me categories back but unfortunately no subcategories. Even if I add like the documentation says the parameter "addsubcategories = 1", only the top-level Categories are sent back. An idea what the issue could be?
2
The course creation works so far, but I would like to assign the instructor to a specific user. Now when I create a course, it is indeed created under the users with the WS-rights. Is there a possibility to change the instructor?
Short background:
We have a central system where teachers can save new course information. Here should you have the opportunity to create a Moodle course immediately. We have in both systems a unique identifier of the user that should become the instructor. Of course, must be prior to the course, the Category / Subcategory be selected.
I would be happy about feedback!
This is a very late answer however I think it might be a valid solution to the first issue above and hopefully will help someone with similar issues.
A webservice user with the permission moodle/category:manage will be able to see all categories, hidden or visible as well as all levels of categories.
However there is no mention of this restriction in the Moodle API docs (that I could find at least).
Hope that helps anyone with this issue in the future.
Regards
I'm writing an classified ads website, I need that the users renew the Ads only clicking in a URL that I will send by email. What cautions should I have implementing a system like this? I've searched on the web but didn't find examples of an implementation like this.
Can someone give some clues about the right path to do this?
Best Regards,
First off, SQL Injection will be a major thing to worry about, especially when using obvious get parameters.
Second, you will want non-personally identifying info in the GET parameters. You will NOT want short ids such as 123456 as these are VERY EASILY guessed. A GUID (example 412dc535-03dd-4887-b702-02c8b85e8891, you would remove the - of course) is great for this.
Third, you will want some sort of basic verification that it is in fact the user that originated the request. Have each email have its own ID for the one click action, perhaps a GUID (long string of random characters), and make them expire after some time (a few days). Keep track of each email link separately and what they're supposed to do, so that someone couldn't just figure out the ID of someone's ad and keep running it over and over.
~Christian
Not sure if the is the best place to be posting this but not sure where else I could.
My app is basically a form which they fill in to get on the guestlist for an event, so they select the event (object) and add their details and the number of guests that will be with them. On submission this creates an action i.e Joe Blog is on the guestlist for an event.
As the guests that are coming with them might be their friends on Facebook it makes sense to be able to tag those friends so that they know they are on the guestlist too.
However Facebook is declining this and saying...
The action tagging property you submitted doesn't meet our requirement of authentically tagging other users you've shared an experience with. For Open Graph actions the action tagging additional property can only be used when both users are performing the action.
I far as I can tell my app meets these requires as the people tagged will be sharing the experience i.e Joe Bloggs is on the guestlist for an event with Friend 1 and Friend 2
Hopefully someone from Facebook will see this and properly explain why it's getting declined as I don't see why (in their examples) you can cook a recipe with someone but not be on a guestlist with them.
On submission this creates an action i.e Joe Blog is on the guestlist for an event.
As the guests that are coming with them might be their friends on Facebook it makes sense to be able to tag those friends so that they know they are on the guestlist too.
Nope.
Action tagging is supposed to tag friends that are at the physical location of an action and are undertaking this action together.
“Being on a guestlist” does not have a physical location, and is nothing you “undertake” either – it is just that, being on a list (so I would question whether it is a real “action” altogether, since it is not active, but rather passive).
Quote from docs:
“For instance, you should use it to say, Austin is eating at The Ballpark with Rose. Not, Austin will eat at The Ballpark with Rose, since the action has not yet occurred with that person.”
-
I far as I can tell my app meets these requires as the people tagged will be sharing the experience i.e Joe Bloggs is on the guestlist for an event with Friend 1 and Friend 2
That you say “will be sharing the experience” here should be a clue all in itself – when Joe and his friends actually attend the event when it is happening, that might be worth of action tagging then.
For what you want, you should look at mention tagging instead.
I am blocking a huge number of bots, except the ones from search engines, and then only allowing 2seconds of session management.
However, spam bots are still able to by-pass these measure and create a huge number of requests which is 'killing' the server.
I have read other articles on this site but none seem to directly answer this issue.
A bot probably behaves faster than a human. You could time how long it takes them to fill out the form. Anything less than a second or two is a bot.
A bot probably doesn't have JavaScript turned on. You could use that to your advantage.
You could hide a link via css (or not give it any text) that takes the bot to a bot.cfm page, which could then set a session value.
There are some open source projects but I can't remember the names of them off the top of my head.
CF10 has a new validation function.
Ben Nadel has written some useful posts in his blog regarding spiders/bots.
http://www.bennadel.com/blog/1083-ColdFusion-Session-Management-And-Spiders-Bots.htm
http://www.bennadel.com/blog/154-ColdFusion-Session-Management-Revisited-User-vs-Spider-III.htm
For forms, I use <cfimage> to create a captcha image. I have found that stuffing the captcha phrase in a session variable can cause problems (I can't remember what the problems were though). So, I now use <cfencrypt> to include an encrypted phrase in the form itself. The action page decrypts the phrase and compares it to what the user put in the captcha form field.
I've found CFSPAMProtect to be very useful at blocking automated form fillers.
It bases its SPAM/HAM test on an aggregate score of a number metrics including time on page, mouse movement (via JS) as well as the classic hidden form fields that shouldn't be filled in (but are filled in by dumb robots).
You can assign your own weightings and monitor the SPAM catch via email to allow you to tailor things.
It can work on its own or link to some third party SPAM tools such as Akismet.
So far I've found that it's good enough on it's own.
It's a custom tag and easy to implement in existing forms too which is nice.
Give it a go...
I want to make an interface that looks like this
So here is what the user can do
1- Connect people to each other
2- See some information about each person (the balloon)
3- Move these objects around without them loosing their connections
Then I want to save these connection information using ajax, so that I can see who is connected to who, I also need to redraw these diagrams next time the user sees the page.
It seems like jsPlumb, paperjs, and raphael can all do this and a lot more, my question is which one is suitable for this need.
inspect graphiti which is based on raphael.
http://www.draw2d.org/graphiti/jsdoc/#!/example
Greetings
Andreas