+ 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 ..??

26th May 2017, 6:28 PM
#Happy@777
#Happy@777 - avatar
8 Respostas
+ 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 .......
27th May 2017, 2:38 AM
#Happy@777
#Happy@777 - avatar
+ 12
can you please give an example @Melih & noname
27th May 2017, 2:23 AM
#Happy@777
#Happy@777 - avatar
27th May 2017, 4:19 PM
#Happy@777
#Happy@777 - avatar
+ 9
https://code.sololearn.com/WPqy4iEC3CB6/?ref=app
27th May 2017, 4:22 PM
#Happy@777
#Happy@777 - avatar
+ 4
you should save them to database ; use php
26th May 2017, 6:30 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 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
26th May 2017, 8:07 PM
voidneo
+ 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?
27th May 2017, 2:32 AM
voidneo
+ 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)
27th May 2017, 3:04 AM
voidneo