+ 12
🎓 HIGH LEVEL QUES >> Is it possible to save suggestion given by user in web code ......
i am making an Facebook page & I create a button whose value is "suggestion" and I want that user click on it & can write suggestion there, which will save automatically ........is it possible ..??
8 ответов
+ 14
@noname ........Not exactly ,,, I am creating a facebook log in page & I want that when user click on suggestion button & write there ....then it will save there .......as happened in real facebook page ...
hope u understand .......
+ 12
can you please give an example @Melih & noname
+ 9
https://code.sololearn.com/WPqy4iEC3CB6/?ref=app
+ 4
you should save them to database ; use php
+ 3
Facebook offers various plugins and apis, one of them is a commentary box for external websites such as blogs, you can customize it before implementing it, you could try that in first place, I suggest you to Google it. if that's not exactly what you expected you should implement it hidden, and redirect the suggestion to the hidden Facebook box and submit it with javascript
+ 3
First, take a look at this:
developers.facebook.com/docs/plugins/comments/
Second: I'm not sure if I got it right, you want someone to write in your website and automatically post it on Facebook or otherwise?
+ 3
Then I strongly recommend you to use the plugin Facebook provides to do that. Add it to your website and hide it with Jquery or whatever you like. Then you can do something like this:
$('suggestBtn').click(function(e) {
e.preventDefault();
var val = $('txtBox').text();
$('fb_txtBox').text( val);
// then submit it
}
you could try something like that. (it was am example, It isn't mean to work due elements ids and so on)