[Facebook] Fill the info struct

This will be used to send the profile to Facebook

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2017-10-02 14:22:02 +02:00 committed by Dirk Hohndel
parent dd17c6355d
commit e662ce1cec

View file

@ -196,6 +196,11 @@ void FacebookManager::sendDive()
if (dialog.exec() != QDialog::Accepted)
return;
fbInfo.bodyText = dialog.text();
fbInfo.profileSize = dialog.profileSize();
fbInfo.profileData = grabProfilePixmap();
fbInfo.albumId = QString(); // request Album Id wil handle that.
requestAlbumId();
QUrl url(graphApi + QString(prefs.facebook.album_id) + "/photos?" +